Title: Javascript for Load more
Last modified: July 4, 2017

---

# Javascript for Load more

 *  Resolved [collectabox](https://wordpress.org/support/users/collectabox/)
 * (@collectabox)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-load-more/)
 * 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](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-load-more/#post-9289323)
 * 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](https://wordpress.org/support/users/collectabox/)
 * (@collectabox)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-load-more/#post-9290755)
 * 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](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * (@craig-at-smash-balloon)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-load-more/#post-9291146)
 * 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.

 * ![](https://ps.w.org/instagram-feed/assets/icon-256x256.png?rev=2700807)
 * [Smash Balloon Social Photo Feed – Easy Social Feeds Plugin](https://wordpress.org/plugins/instagram-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/instagram-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-feed/reviews/)

## Tags

 * [load more](https://wordpress.org/support/topic-tag/load-more/)

 * 3 replies
 * 2 participants
 * Last reply from: [Craig at Smash Balloon](https://wordpress.org/support/users/craig-at-smash-balloon/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/javascript-for-load-more/#post-9291146)
 * Status: resolved