• I just want to know which code be added to disable previous and next post links twenty sixteen.
    Someone help

Viewing 2 replies - 1 through 2 (of 2 total)
  • you should be able to hide it with this CSS in style.css of a child theme or via a cuatom CSS plugin:

    nav.pagination { display: none; }

    or edit index.php (and archive.php and search.php) in a child theme, and remove this section:

    // Previous/next page navigation.
    			the_posts_pagination( array(
    				'prev_text'          => __( 'Previous page', 'twentysixteen' ),
    				'next_text'          => __( 'Next page', 'twentysixteen' ),
    				'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
    			) );
    Thread Starter kgmyat

    (@kgmyat)

    thank, the first css code work for me. thank for your answer

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘how to disable previous and next post links in twenty sixteen’ is closed to new replies.