- This topic has 4 replies, 3 voices, and was last updated 5 years, 4 months ago by Tom.
July 4, 2016 at 9:10 am #206445Max
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.
MaxJuly 4, 2016 at 9:22 am #206451Roberto 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_PluginsJuly 4, 2016 at 10:18 am #206480TomLead DeveloperLead 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.July 4, 2016 at 7:19 pm #206566Max
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.
Max.July 5, 2016 at 12:02 am #206603
- You must be logged in to reply to this topic.