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

Home Forums Gillion Theme How to show the Load More button instead of standard pagination

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • fabiano1987
    Participant

    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”>&laquo; Articoli più recenti</span>’);
    next_posts_link( ‘<span class=”leggialtrodx”>Precedenti &raquo;</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

Viewing 2 posts - 1 through 2 (of 2 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form