Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

[Resolved] Does a child theme effect site performance any important stuff I should know?

Home Forums Support [Resolved] Does a child theme effect site performance any important stuff I should know?

Home Forums Support Does a child theme effect site performance any important stuff I should know?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #206445
    Max

    Tom

    I have a good deal of functionality snippets running in my own plugin. I also have a lot of custom CSS running in your css plugin. I have tested running a child theme as I may also need one to adopt some changes to bbpress search field and consecutive numbering of forum replies, both of which require template edits.

    I am assuming once I am ready to go live with my site, I can transfer my custom css from your plugin to the style sheet in the child theme and also transfer the code from my functionality plugin to a wp functions file in the child theme. Then upon going live i can delete your css plugin and not have to run my functionality plugin.

    I have zero experience with child themes. Is my thinking above correct. Will a child theme effect site performance and is there any other risks or negatives to using a one.

    Also is there any tips you would give regarding using a child theme.

    Kind Regards

    Max

    #206451
    Roberto Enrique

    Just my two cents:

    – Css added in SimpleCSS plugin should work nice in the child’s style.css
    – Your code on the plugin is not granted to work if you place that on function.php, you should do your testing in a test environment.
    But remember that if you just need to to “hide” the plugin to your client/users you can use the mu-plugin folder https://codex.wordpress.org/Must_Use_Plugins

    #206480
    Tom
    Lead Developer
    Lead Developer

    You can do it either way.

    There shouldn’t be any difference in performance between the two.

    Performance is about the code, not about how you add it.

    #206566
    Max

    Thanks Roberto and Tom.

    My way of thinking is that if I don’t need/use a child theme then I can just go live using Tom’s css plugin and my own functionality plugin. However, if I do use a child theme then then I might as well also run the added functions and custom css there. I could then delete two plugins (my functionality one, and Toms CSS one) as well as having everthing in the one spot to make it easy to backup (ie. just back up my child theme folder.

    Kind Regards

    Max.

    #206603
    Tom
    Lead Developer
    Lead Developer

    Yep, that’s absolutely right 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.