Fatal error: Call to undefined function twentyeleven_content_nav()
-
I am using:
WordPress V 3.3.2
WP-eCommerce V 3.8.8
Theme: Twenty Eleven
Child Theme: Twentyeleven-child
Web Site: https://www.greenhillsoaps.comWhen I go to the site I get the following message:
Fatal error: Call to undefined function twentyeleven_content_nav() in /home/fgoldwyn/public_html/www.greenhillsoaps.com/wp-content/themes/twentyeleven-child/index.php on line 23
I checked my index.php of my child theme and the relevant sections is as follows:
<div id="primary"> <div id="content" role="main"> <?php if ( have_posts() ) : ?> <?php twentyeleven_content_nav( 'nav-above' ); ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?> <?php twentyeleven_content_nav( 'nav-below' ); ?> <?php else : ?>
I then checked my Parent theme functions.php and found the function twentyeleven_content_nav () on line 422. That code is as follows:
add_action( 'widgets_init', 'twentyeleven_widgets_init' ); if ( ! function_exists( 'twentyeleven_content_nav' ) ) : /** * Display navigation to next/previous pages when applicable */ function twentyeleven_content_nav( $nav_id ) { global $wp_query; if ( $wp_query->max_num_pages > 1 ) : ?> <nav id="<?php echo $nav_id; ?>"> <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyeleven' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyeleven' ) ); ?></div> </nav><!-- #nav-above --> <?php endif; } endif; // twentyeleven_content_nav
Both the child theme index.php and the parent theme functions.php are as specified by WordPress.
The only other change that was made was that I had to replace my robots.tx file. Other than that, there have been no other changes to my site.
The site was working perfectly yesterday, then this morning – FATAL ERROR.
My site is down and I cannot find out how to get it back up. I have searched the forum for this error and there are 5, I think, postings, but none explain what to do to fix the problem.
This is a desperate plea for help.
- The topic ‘Fatal error: Call to undefined function twentyeleven_content_nav()’ is closed to new replies.