Home › Forums › Gillion Theme › How to show the Load More button instead of standard pagination
Home › Forums › Gillion Theme › How to show the Load More button instead of standard pagination
hi,
i’ve build a custom homepage using WP_Query to show the latest 10 posts. All works.
after the 10 posts, i’ve this code:
<?php
previous_posts_link(‘<span class=”leggialtrosx”>« Articoli più recenti</span>’);
next_posts_link( ‘<span class=”leggialtrodx”>Precedenti »</span>’, $the_query->max_num_pages );
wp_reset_postdata();
?>
Of course, it works fine and shows me 2 arrow to go to the next or previous page.
The question is: How can i show the “load more” button which is already integrated in the theme under the function gillion_load_more_posts() ?
i know that customization is not part of this support forum but this function is already part of the theme. I don’t need help to code something new, i just need to know how to put the load more button in that place.
Thank you
Hi @fabiano1987,
I hope you are well today and thank you for your question.
It is displayed on the site by markup added in the following theme file on line number 311
/gillion/inc/elements/blog-posts-basic.php
The load more button functionality is handled using AJAX and its javascript code is in the theme file gillion/js/scripts.js in the function gillion_loadmore and its PHP functionality is in the function gillion_load_more_posts that you have shared above.
Best regards,
Shufflehound team
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.