Lose pagination navigation buttons after use
-
Hi,
I’m a WordPress novice trying to implement pagination with custom buttons (that look terrible at the moment). It looks like the plugin is almost working. When I select the pagination navigation buttons it doesn’t completely reload the page but it moves back up to the top of the post. However, the navigation buttons disappear. Any help or suggestions you could offer would be great. Thanks for your help.This is the post that I’m trialing pagination on: https://youputitup.com/10-favorite-meat-free-recipes/
I’m using a twenty twelve child theme and in my content.php file I’m using the following code for the pagination navigation buttons that I have above and below the post:
<?php $defaults = array( 'before' => '<div class="pagenav">', 'after' => '</div>', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'next', 'separator' => ' ', 'nextpagelink' => __('<img src="/wp-content/uploads/next button trans.png" />'), 'previouspagelink' => __('<img src="/wp-content/uploads/last button trans.png" />'), 'pagelink' => '%', 'echo' => 1 ); wp_link_pages( $defaults ); ?>
Then I’m using the following selectors in the plugin settings:
Posts Selector: .site-content
Post Selector: .post
Navigation Selector: .pagenav
Navigation Selector: .pagenav
- The topic ‘Lose pagination navigation buttons after use’ is closed to new replies.