• Resolved undergroundnetwork

    (@undergroundnetwork)


    I am running Infinite Scroll on a child theme and it works perfectly. The only issue is that I never see the infinite-loader image.

    Not sure what i am dong wrong. I disabled all plugins (except Jetpack), still no loader.

    I am not using a div but rather ul for the wrapper, perhaps that’s why?

    Here is my site and I have infinite loader only on the home page.

    Here is my site: underground.net

    Thanks!

    Charles

    http://ww.wp.xz.cn/plugins/jetpack/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you try to style the spinner, like we do for the Twenty Thirteen page:
    http://plugins.trac.ww.wp.xz.cn/browser/jetpack/tags/2.5/modules/infinite-scroll/themes/twentythirteen.css

    That might explain why we don’t see the spinner on your site yet.

    Let me know if it helps.

    Thread Starter undergroundnetwork

    (@undergroundnetwork)

    I added in your styling and was able to determine something.

    I have wrapper as false since I am using <ul id="infinitescroller">

    So that means that your scroller is not supposed to put in a <div> </div> wrapper, which is operating correctly.

    BUT..

    Unfortunately, it’s also not putting in an <li>...</li>wrapper around the javascript and <span class=”infinite-loader”..</span> it’s just inserting itself at the end of an
    <li></li>
    element like this:

    <ul is="infinitescroll">
          <li> item one</li>
          <li> item two </li>
         <script id"infinite-handle">...</script>
         <div id="infinite-handle">...</div>
    </ul>

    Which means that it won’t show as you can’t just put elements at an end of a <ul><li></li></ul> list without an <li>...</li> around it.

    Do you know of a solution?

    Here is my function code as it currently stands:

    function clear_news_infinite_scroll_init() {
        add_theme_support( 'infinite-scroll', array(
            'container'			=> 'infinitescroll',
            'footer'			=> false,
            'footer_widgets'	=> false,
            'wrapper'			=> false,
            'posts_per_page' => 6,
            'render'			=> 'my_child_infinite_scroll_render',
        ) );
    }
    add_action( 'after_setup_theme', 'clear_news_infinite_scroll_init' );
    
    function my_child_infinite_scroll_render() {
        while ( have_posts() ) {
    		 the_post();
            ?>
    	<li class="col-md-4 col-sm-6">
    		<?php get_template_part( 'templates/parts/content', get_post_format() ); ?>
    	</li>
            <?php
    } }

    Thanks!

    Thread Starter undergroundnetwork

    (@undergroundnetwork)

    OK. I solved it. Not sure if it’s HTML grammatically correct, but I used CSS to put it in the correct place:

    To the .infinite-loader CSS I added:

    position:fixed;
    	bottom:30px;
    	left:20px;

    Now it’s permanently (while showing) in the lower left corner of the browser.

    Thread Starter undergroundnetwork

    (@undergroundnetwork)

    On a side note.. it looks like I broke the forum somehow!

    Yes, you used <li> tags without the code buttons – that does it! I fixed it for you :).

    Thread Starter undergroundnetwork

    (@undergroundnetwork)

    Great! Thanks for fixing that!

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

The topic ‘Infinite Scroll Loader Image not showing’ is closed to new replies.