theme options – not loading with child theme
This support request was posted in General Support by lisajoy
- lisajoy September 28, 2015 at 5:36 am
Hey,
I’ve created a child theme of flatbase and imported the theme options I was using before but I can’t get the header image to display. I’ve tried removing the image and trying again with no luck. Some of the other theme settings I’ve set (colours/fonts) etc also don’t seem to take affect.Is there an additional function or script I need to refer to in the child theme make nice theme options work?
– LisaJuanfra Aldasoro September 28, 2015 at 2:42 pmHi Lisa,
Thank you for writing. I went through your site and saw that your child theme was creating an enqueue of the parent theme styles. That’s ok and it is one of the different ways to create a child theme. Unfortunately when you do not set a priority for this action to trigger, is triggered after the parent theme do all the “customization actions” (that would be, placing the header image for example). So, the main stylesheet will be loaded after the customization actions take place and as a result you’ll see the theme as if it was installed seconds ago.
The other way to include the parent theme styles would be calling them through the main CSS, like you can see on this other article: https://www.elegantthemes.com/blog/resources/wordpress-child-theme-tutorial.
I’ve done a few tweaks to your child theme files and it is now working. Please take a look at the changes and the article.
Best,
Juan.
You must be logged in to reply to this topic.