Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi.

    Use this code snippet in \wp-content\themes\athena\template-parts\content-single.php:

    <?php the_post_navigation( array(
    		'prev_text' 			=> '<input class="post_nav_button_prev" type="button" value="<  ' . '%title' . '" title="' . '%title' . '">',
    		'next_text' 			=> '<input class="post_nav_button_next" type="button" value="' . '%title' . '  >" title="' . '%title' . '">',
    		'in_same_term' 			=> true,
    		'taxonomy'				=> 'category',
    	) ); ?>

    You can modify the appearance through css. In this example I create a button with title attribute and separate input class.

    Good luck,
    Mac

    I forgot to say you have to change css because the navigation links wont be displayed.

    .post-navigation .nav-previous,
    .post-navigation .nav-next
    {
    	display: unset;
    }

    Nac

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Next and Previous Links on the post’ is closed to new replies.