Return to Support

Child-theme Vs custom CSS

Home Forums Graphene WordPress theme Support Child-theme Vs custom CSS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9584
    KingSwiff
    Member

    I can’t figure, if I only make changes in the design in the custom CSS, do I then have any benefit making a child-theme?

    If the question is unclear, please let me know. Thanks!

    #44050

    If you are only making a few changes, then you can add them to the custom CSS feature with no worries.

    However, anything that you add to that area (plus quite a few of the theme options, such as page width) gets added to the <head> tag and is loaded with each and every page. If your changes are significant, this can add to your server load, which is a consideration as you start to get more traffic.

    If you use a child theme, that code goes into the child theme stylesheet, which is loaded once the first time that someone visits your page, and then is loaded from their browser cache as they move around your site. This reduces the load on your server.

    #44051
    Anonymous
    Member

    Not only is the child theme for CSS files, it’s also good for the PHP files and custom functions. You just create a file with the same name and put in your custom function. This way the function will still be there after a graphene update which would override the original file.

    #44052
    KingSwiff
    Member

    Okay, thank you. Child Theme it is 🙂

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

You must be logged in to reply to this topic.