I have created a theme that contains several functions.
I now want to create a sub theme. That way, I can use the parent theme on all my sites (and any updates to the parent the theme can be easily applied to all the sites). The sub theme will contain all the modifications that are specific to that individual website.
I have created a sub theme following the instructions in this tutorial. When I enable the subtheme, the site breaks. Most of the content disappears and I get this error message:
Fatal error: Call to undefined function legendary_views_field_compare_value() in /all/themes/legendary/templates/slideshow.tpl.php on line 20
Fatal error: Call to undefined function
legendary_views_field_compare_value()
in /all/themes/legendary/templates/slideshow.tpl.php on line 20
- legendary_views_field_compare_value()
legendary_views_field_compare_value()
is the name of a function in my parent theme. - legendary is the name of my parent theme.
- slideshow.tpl.php is a template in my parent theme.
I don't understand why this is happening. I thought the sub theme should inherit all the functions of the parent theme (especially is the function is being called from inside the parent theme and NOT in the sub theme).
How can I fix this?