Child theme
-
I would like to create a child theme with custom page types.
I just started and wanted to create a custom homepage with the slider and top posts.exclusive_slideshow(); exclusive_top_posts();But non of them are showing. How can I enable them on other pages?
Thanks for the time,
Adrian
-
Dear Adrian,
As it is mentioned in WordPress documentation (http://codex.wordpress.org/Child_Themes):
Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent. Instead, it is loaded in addition to the parent’s functions.php.
So you need to include those functions in the functions.php of your child theme.
Thank you.I completely forgot about this post.
I read the codex entry about the child themes but the functions part did not stick with
me so thanks for the reminder.I don’t have a functions.php in my child theme at the moment but if I create that
and copy past the functions (exclusive_slideshow()) it says that it is already declared.
After removing the functions.php from the child I checked if the functions exists in
the custom page php file with the following:
echo ">>>". function_exists('exclusive_slideshow');
It returns true so the slideshow should work on a custom child page right?I also have an extra question about your slider. Is it possible to have it on multiple
pages (original question) and have them display other images (extra question)?There is a list of other functions that should be included for the slider to work with the child theme. If you have the theme live with a website, please provide us link and we will help you out with what’s wrong there. Whereas if you do not have it, we would ask you to send it out to info[at]web-dorado.com. As for the extra question, by default there is no such possibility. We have the slider only displayed within the homepage.
The topic ‘Child theme’ is closed to new replies.
