Title: how do customize the loading template
Last modified: August 22, 2016

---

# how do customize the loading template

 *  [acmdesigns](https://wordpress.org/support/users/acmdesigns/)
 * (@acmdesigns)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-do-customize-the-loading-template/)
 * I tried setting the option loading.msg via the `infinite_scroll_js_options` like
   this:
 *     ```
       function my_infinite_scroll_options_filter( $options ) {
       	$options["loading"]["msg"] = '<div id="infscr-loading">something</div>';
       	return $options;
       }
       add_filter( 'infinite_scroll_js_options', 'my_infinite_scroll_options_filter' );
       ```
   
 * but this resulted in an error because the javascript is expecting an HTML element
   object instead of just a string. How can I customize the **msg** option??
 * [https://wordpress.org/plugins/infinite-scroll/](https://wordpress.org/plugins/infinite-scroll/)

The topic ‘how do customize the loading template’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/infinite-scroll.svg)
 * [Infinite-Scroll](https://wordpress.org/plugins/infinite-scroll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/infinite-scroll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/infinite-scroll/)
 * [Active Topics](https://wordpress.org/support/plugin/infinite-scroll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/infinite-scroll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/infinite-scroll/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [acmdesigns](https://wordpress.org/support/users/acmdesigns/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/how-do-customize-the-loading-template/)
 * Status: not resolved