Title: Load button does nothing (and JS error)
Last modified: September 15, 2016

---

# Load button does nothing (and JS error)

 *  [rjpedrosa](https://wordpress.org/support/users/rjpedrosa/)
 * (@rjpedrosa)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/load-button-does-nothing-and-js-error/)
 * Hi,
 * When I click the load more button, nothing happens and I get this error on the
   console:
 * > Uncaught ReferenceError: elm_button_vars is not defined frontend.min.js?ver
   > =1.0.0:1
 * Here’s my code:
 *     ```
       <div id="posts-load-more">
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <article>
       <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
       </article>
       <?php endwhile; endif; ?>
       </div>
       <div><?php load_more_button(); ?></div>
       ```
   
 * Any help?
    Thanks!

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

 *  Thread Starter [rjpedrosa](https://wordpress.org/support/users/rjpedrosa/)
 * (@rjpedrosa)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/load-button-does-nothing-and-js-error/#post-8186779)
 * And yes, the id is correctly set in the plugin settings, as you can see here:
   [https://db.tt/jEKPBxyk](https://db.tt/jEKPBxyk)
 *  Plugin Author [Idiom](https://wordpress.org/support/users/brianbrey/)
 * (@brianbrey)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/load-button-does-nothing-and-js-error/#post-8863670)
 * There was bug where depending on certain themes the script tag containing `elm_button_vars`
   would not load. That has been fixed in the latest update, and it is the most 
   likely source of your problem. If it’s still not working after this update, please
   let us know. Thanks!

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

The topic ‘Load button does nothing (and JS error)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-load-more.svg)
 * [Easy Load More](https://wordpress.org/plugins/easy-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-load-more/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Idiom](https://wordpress.org/support/users/brianbrey/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/load-button-does-nothing-and-js-error/#post-8863670)
 * Status: not resolved