Support » Plugin: WP-Paginate » WP-Paginate Twenty Twelve Top Nav Child Theme

  • I have WP-Paginate installed in a Twenty Twelve child theme on certain pages at the second page, like authors archives it appears at the top of the page and bottom. Everywhere else its just on the bottom.

    Anyone know how to remove it at the top in the child theme ?

    In my child theme function.php I have now

    function twentytwelve_content_nav( $html_id ) {
    	global $wp_query;
    	$html_id = esc_attr( $html_id );
    	if ( $wp_query->max_num_pages > 1 ) : ?>
    		<nav id="<?php echo $html_id; ?>" class="navigation" role="navigation">
    			<h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3>
    <?php if ( function_exists( 'wp_paginate' ) ) {
    } else { ?>
    			<div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ) ); ?></div>
    			<div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?></div>
    <?php } ?>
    		</nav><!-- #<?php echo $html_id; ?> .navigation -->
    	<?php endif;


  • The topic ‘WP-Paginate Twenty Twelve Top Nav Child Theme’ is closed to new replies.