Child Theme Customisation
This support request was posted in BBQ by anuparyal
- anuparyal February 20, 2015 at 4:39 pm
Hi Juan,
It’s been a little while – hope you are well.
I am starting to customize themes to serve my needs with WooCommerce, so wanted to ask you about child themes for BBQ.
I have created a child Theme. If I want to make changes to footer.php, would I create file called footer.php in the child theme as well? If so, how would I import everything and suppose I wanted to change the below, how would i write this into the child theme please?
I want to change the text ‘Client Testimonials’ above, but how do I incorporate that into a child theme?
Thank you.
Best,
AnupJuanfra Aldasoro February 20, 2015 at 6:07 pmHi Anup,
Thanks for writing and hoping that you are doing well. I am doing well, thanks 🙂
With regards to using child themes, nice move. It is the way to go when customizing themes. You can read more about all the tech specs here: http://codex.wordpress.org/Child_Themes
If you want to make changes to footer.php, then you can replicate that same file on the child theme folder, and make the changes over there. Then, the parent theme is loaded, and if there are some mods on the child theme they’ll have priority over the parent theme.
Best,
Juan.anuparyal February 20, 2015 at 7:25 pmThank you Juan – this works!
However, if and when you make changes to footer.php and create an update for the theme, my child theme will always have the old footer.php. Therefore, is this the most effective way of doing this?
All I want to be able to do is reference certain php lines from the original footer.php so wondered if there is a way to do that, rather than copy the whole file. Example: style.css as an @import which inherits the code.
Thank you.
Anup
Juanfra Aldasoro February 20, 2015 at 7:33 pmHi Anup,
Well, that will happen all the time. Updates are meant to bring good things to the table. The marvellous thing about having the customization into the child theme is that you won’t be overwritten with the new version. So, if you want to get the new version of the file, you simple remove the one on the child theme.
Fortunately we, as theme authors, take the backwards compatibility into account when releasing updates. And it is quite likely that the general structure will remain the same.
What is that you want to change over the footer?
Best,
Juan.anuparyal February 20, 2015 at 9:53 pmThanks for the explanation Juan. I have already changed it – It was the Client Testimonial text.
Best,
Anup
This topic is marked as resolved
Only the topic author can re-open this thread.