Customizr theme bad update issue because of a snippet in child theme
-
Hi,
I’ve just tries to update Customizr theme to 3.4.37 version and I get a bad issue when opening a single blog post. This is the message error:
Fatal error: Class ‘TC_post_navigation’ not found in /home/itelnamemd/i-tel.it/wp-content/themes/customizr-child/functions.php on line 336
Since i’m using the snippet “Removing the post navigation block of links” in my in my function.php file, I changed the code that Menaka S suggest in the last comment to:
add_action ( ‘wp_head’, ‘remove_single_post_nav_links’);
function remove_single_post_nav_links() {
//we only want to remove those nav links for a sinlge post and not for the list of posts
if ( !is_single() )
return;
remove_action ( ‘__after_loop’ , array( CZR_post_navigation::$instance , ‘tc_post_nav’ ), 20 );
}The single blog post appears again, but nav links continue to show. Is there anything I can do or do I need to hire premium support?
thank you!
- The topic ‘Customizr theme bad update issue because of a snippet in child theme’ is closed to new replies.