Child theme graphene

  • Anonymous

    #26039

    The thing about using custom css is that it gets added to the header of EVERY page being displayed on your website… regardless of whether the custom css is needed or not on the page.

    So, by using custom css, the more you add; the greater strain you are putting on your server for each page load. Which, in theory, could reduce the speed of your page loading times.

    That’s the purpose of a stylesheet. It gets called only once, and gets “buffered” into the browser. The custom css option doesn’t have this feature. Instead, it is called on EVERY page load.

    Hence… a child theme 🙂

    Anonymous

    #26040

    Hi guys !

    You did not say if I should put the file header.php entire in the child.

    Or just my adjustemnts (like functions.php) ?

    Thank you very much !!!

    Anonymous

    #26041

    Unlike functions.php, you need to add the entire customised header.php file into the child theme. Note that, by doing this, you’ll miss out the future updates of the header.php file

    Anonymous

    #26042

    Hello Prasanna !

    I agree with you.

    But, what is the interest of having a child theme ?

    Maybe, I must place only functions.php and style.css in the theme child ?

    Anonymous

    #26043

    But, what is the interest of having a child theme ?

    Basic idea is to avoid hacking the parent theme and keep your customisations alive even after a theme update.

    Maybe, I must place only functions.php and style.css in the theme child ?

    No, you can also add some custom page template files in the child theme. You can even add your parent theme’s files into child theme as long as you don’t want to use those updated parent theme files.

    Anonymous

    #26044

    Hello Prasanna !

    I’m agree with you.

    So, I placed only in the child theme : functions.php and styles .css

    My header.php with my adjustements is in parent theme.

    You are very sympatical with me, thank you very much for your support !!!

    Anonymous

    #26045

    Hello Prasanna !

    I’m agree with you.

    So, I placed in the child theme : functions.php and styles.css

    My header.php with my adjustements is in parent theme.

    You are very sympatical with me, I thank you very much for your support !!!

Viewing 7 posts - 21 through 27 (of 27 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!