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??
- The topic ‘how do customize the loading template’ is closed to new replies.