New Landing How can we help? Themeforest Theme Support Dante Custom css in the page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Dante
  • #82143
    shmulik
    Member
    Post count: 29

    Hi,

    I would like to put all custom css into a file and not show it in the source code of the page.

    This is a best practice of SEO.

    How do I do that.

    Website: http://israeliapp.com/fashionstore.

    I have attached the section of the css from the source code.

    Thank you,

    Sam

    #82170
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You need to use a child theme, upload the child theme folder that you will find in the folder that you downloaded from ThemeForest. The child theme contains a style.css file, functions.php file and a screenshot. You can put your custom css in the child theme style.css file

    – Kyle

    #82198
    shmulik
    Member
    Post count: 29

    Yes i Have the dante child but in
    includes\sf-custom-styles.php
    it outputs the css into the html.

    Sam

    #82201
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    sf-custom-styles.php outputs all of the theme option styles, like colors, fonts etc. There is no way to prevent this.

    You can include your custom css in the child theme and this will not be visible in the source code, but you can’t stop it showing all of the dynamic styles

    – Kyle

    #82205
    shmulik
    Member
    Post count: 29

    Please have a look at the source code of the dante theme. It is crazy to have all the css inside the html.
    It is a very bad practice for SEO.

    Sam

    #82206
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    There’s no other way to do it, you will find it like this for all themes that have customisability within the theme options. As it uses php to input the correct colors, fonts etc that you chose in the theme options. You can’t add php in a css file

    – Kyle

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register