Page Navigation buttons on top of Blog page
-
Hi Kadence, I’m trying to edit the theme template to add page navigation buttons on the top of the Blog page.
I have successfully copied the
archive.php
andsearch.php
files in my child theme directory and duplicated the following function respectively from line 76 to line 39 and from line 37 to line 29.if ($wp_query->max_num_pages > 1) : if(function_exists('pinnacle_wp_pagination')) { ? pinnacle_wp_pagination();?? } else { ?>????? ? <nav class="post-nav"> <ul class="pager"> ? <li class="previous"><?php next_posts_link(__('← Older posts', 'pinnacle')); ?></li> ? <li class="next"><?php previous_posts_link(__('Newer posts →', 'pinnacle')); ?></li> </ul> ? </nav> <?php } endif;
To add the Page Navigation buttons on the top of the Blog page (latest posts page), which template should I edit?
My homepage is a static page. I’m using the grid view for the Archives and Search pages but the post list template for the Blog page. I have tried to edittemplate-blog.php
without success.Thanks in advance
Hugo
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Page Navigation buttons on top of Blog page’ is closed to new replies.