Fatal error: Class ‘TC_featured_pages’ not found
-
I have a child theme created from the Customzr theme.
I created a functions.php file that has been working for a couple of years. Yesterday I decided it was time to update the theme and once I did I got this error:
Fatal error: Class ‘TC_featured_pages’ not found in /web/htdocs/www.mysite.com/home/wp-content/themes/child-theme/functions.php on line 28This code was working before:
= = = = = = = = = = = = = = = = = = = = = = = = = = =
add_action ('wp_head' , 'move_my_fp'); function move_my_fp() { if (is_front_page()) { //we unhook the featured pages remove_action ( '__before_main_container', array( TC_featured_pages::$instance , 'tc_fp_block_display'), 10 ); //we re-hook the block. Check out the priority here : set to 0 to be the first in the list of different actions hooked to this hook add_action ( '__after_main_container', array( TC_featured_pages::$instance , 'tc_fp_block_display'), 0 ); } }
= = = = = = = = = = = = = = = = = = = = =
I guess that maybe the TC_featured_pages object has changed it’s name… but I tried with no luck.
Can anybody give me some directions on where to look. As mentioned this code has been working until I updated.
- The topic ‘Fatal error: Class ‘TC_featured_pages’ not found’ is closed to new replies.