• Resolved collectabox

    (@collectabox)


    I would love to use my own button on top of the instagram feed to load more pictures in the feed. Is there any way to insert the javascript from the load more function in my own button?

    Thanks and best regards.
    Kat

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Sure!

    You can use some javascript added to the “Custom Javascript” area on the “Customize” tab to do this.

    You would just trigger a “click” action on the load more button when your own button is clicked and also hide the load more button when the page loads. Something like this:

    jQuery('.sbi_load_btn').hide();
    jQuery('.my_button').click(function() {
      jQuery('.sbi_load_btn').trigger('click');
    });

    The “.my_button” part would be the class of the button you are making. Make sure that the “load more” button is included with the feed for this to work.

    Thread Starter collectabox

    (@collectabox)

    Awesome. I got it to work! Thank you very much for the fast reply and the help. Will leave a 5 star review!

    Plugin Contributor Craig at Smash Balloon

    (@craig-at-smash-balloon)

    No problem! Thanks so much for the review as well! That really helps us out.

    Have a great week,

    – Craig

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Javascript for Load more’ is closed to new replies.