Home Forums Themes Support Aqua WordPress Theme Missing buttons for follow up pages on Blog Grid with template 3

Topic Resolution: Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #18488

      Hi, I set up a page for displaying an overview of all the blog posts. I decided to use “Template 3 – Update” as this shows the posts in a nice way. I also configured all the parameters and I want to display only 5 posts on each page.
      When display the page the 5 post for the first page are there, but I miss the arrows and buttons to switch over to the next pages…
      https://prnt.sc/l8bpki

      Would be nice, if you gonna add pagination config to this shortcode.

    • #18501

      Hi again,
      We have fixed for you. Please check again.

    • #18502

      Ye, works now.
      But let me shortly explain to all other users having same trouble, what you changed… In file /themes/aqua/framework/shortcodes/blog_grid/bloggrid.php on line 83 add additional code for the pagination

      Before:

      <?php } ?>
       <div style="clear: both"></div>
       </div>

      With new code:

      <?php } ?>
       <div style="clear: both"></div>
       <nav class="pagination text-center" role="navigation">
      	<?php
      	    $big = 999999999; // need an unlikely integer
                  echo paginate_links( array(
      		'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),		'format' => '?paged=%#%',
      		'current' => max( 1, get_query_var('paged') ),
      		'total' => $wp_query->max_num_pages,
      		'prev_text' => __( '<i class="fa fa-angle-left"></i>', 'aqua' ),
      		'next_text' => __( '<i class="fa fa-angle-right"></i>', 'aqua' ),
      		) );
      	?>
       </nav>
      	</div>
Viewing 2 reply threads

You must be logged in to reply to this topic.