WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
[resolved] Not working in WordPress 3.2 (32 posts)

  1. bthaxor
    Member
    Posted 2 years ago #

    I'm guessing it's a conflict with the TwentyEleven theme? Whatever it is, Infinite Scroll isn't working...

    I'm certain I have the correct selectors, but the JS isn't activating.

  2. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    I pushed an update today, can you confirm this fixes?
    (If not, could you link me to the site so I can see it in action?)

  3. bthaxor
    Member
    Posted 2 years ago #

    Still doesn't seem to work with the latest commit :\

    http://bthaxor.com/

  4. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Could you turn debugging on please? options -> infinite-scroll -> debug
    That way I can see what its doing internally :)

  5. bthaxor
    Member
    Posted 2 years ago #

    Yup sure, done :)

  6. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Basically the problem here is that it can't find the "nextSelector" in the code.
    You have:

    <nav id="nav-below">
    			<h3 class="assistive-text">Post navigation</h3>
    			<div class="nav-previous"><a href="http://bthaxor.com/page/2/" ><span class="meta-nav">&larr;</span> Older posts</a></div>
    
    			<div class="nav-next"></div>
    		</nav>

    So you'll need to change your Previous posts CSS Selector setting to:
    nav#nav-below div.nav-previous a:first
    Or something like that.

    Let me know if that helps or not

  7. bthaxor
    Member
    Posted 2 years ago #

    Really appreciate the help :)

    OK so the script's loading now, but it's still failing to load the next page...

  8. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Its loading for me on Firefox & Chrome. Try turning debugging back off?

  9. bthaxor
    Member
    Posted 2 years ago #

    Ahh brilliant. You legend, thanks for the great plugin :)

    Just a hint, it might help to add setup instructions for the default WP themes on the FAQ page :)

  10. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Awesome, great to hear its working! Good idea, I'll work on that :)

  11. bthaxor
    Member
    Posted 2 years ago #

    OK I'm sorry - don't know what happened, but have a feeling the plugin broke with the most recent update pushed to WordPress...

    http://bthaxor.com/ is my site again, I've turned debugging on. Any help would be great :\

  12. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm seems to work for me, can you try again? If its working with debug on then try again with debug off and let me know; as it could be that it only doesn't work when debug is off... if that makes sense.

  13. bthaxor
    Member
    Posted 2 years ago #

    OK that's weird - seems like the plugin doesn't call jQuery by default, so when I removed another plugin that did, Infinite-Scroll broke. Maybe that's something to consider?

  14. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, it should.. I'll play around with it this week. It basically checks what version of jQuery is loaded and if it is less than 1.6.x then it loads its own. Thinking about it, I suspect it might be that jQuery is on WordPress and up to date but not initiated...
    Thanks for flagging this up :) There will most likely be an update on the weekend.

  15. Krottler
    Member
    Posted 2 years ago #

    Can you tell my what you have written in "Content CSS Selector", "Post CSS Selector", "Navigation Links CSS Selector", "Previous posts CSS Selector". Because it stop working when i updated to Twenty Eleven.
    Thanks in advance! :)

  16. Krottler
    Member
    Posted 2 years ago #

    Managed to fix it. If someone else is wondering, I used:

    Content CSS Selector: div#content
    Post CSS Selector: div#content article.post

    Navigation Links CSS Selector: nav#nav-below
    Previous posts CSS Selector: nav#nav-below div.nav-previous a:first

  17. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Awesome, I can feel a presets/auto-detect feature coming soon!

  18. Pushnov
    Member
    Posted 2 years ago #

    So these settings should work on Twenty Eleven 1.2 theme and Infinite Scroll plugin 2.0b2.110713?

    Content CSS Selector: div#content
    Post CSS Selector: div#content article.post

    Navigation Links CSS Selector: nav#nav-below
    Previous posts CSS Selector: nav#nav-below div.nav-previous a:first

  19. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Correct, do they not? If not then if you just post the url to your site I can tell you which selectors to use.

  20. Pushnov
    Member
    Posted 2 years ago #

    I’m testing on localhost. Probably doing something wrong.
    Did drop/create database, deleted and got new “wordpress” folder from official site, downloaded “Infinite Scroll” plugin again.
    Now it’s kinda weird. Plugin works for me only in Google Chrome Incognito Mode (13.0.782.220 m Windows), log out of wordpress and clear browsing data didn’t help. Not working for me on Internet Explorer 9.
    IIS 7, PHP 5.3.6

  21. Pushnov
    Member
    Posted 2 years ago #

    UPD: Plugin stop working for me in incognito mode after removing header image in Twenty Eleven 1.2 theme (Appearance -> Header -> Remove Header Image), I didn’t change style.css myself.

  22. robinruet
    Blocked
    Posted 2 years ago #

    Thanks beaver for helping us and allowing us to share a link.

    I am new in wordpress.
    i am making a site http://www.takabd/wanyblog/
    can you please give me right selector.

    And can you please tell me how can i debug.
    plz....

  23. Pushnov
    Member
    Posted 2 years ago #

    My problem was in low number of posts to show and big screen resolution. I feel stupid ;)
    Works great in both Chrome and Explorer.
    Thank you for a great plugin Beaver6813!

  24. robinruet
    Blocked
    Posted 2 years ago #

    Thanks beaver for helping us and allowing us to share a link.

    I am new in wordpress.
    i am making a site http://www.takabd/wanyblog/
    can you please give me right selector.

    And can you please tell me how can i debug.
    plz....

    pushnov or beaver anyone ...............plz...........

  25. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    The link you've given above isn't a working link. (I think you've missed .com or something?)

  26. robinruet
    Blocked
    Posted 2 years ago #

    Beaver, sorry the correct link will be http://www.takabd.com/wanyblog/

  27. ant0nio
    Member
    Posted 2 years ago #

    Hi, beaver!

    First of all thank u for your useful code!

    I don't know why but the plugin doesn't work for me. I tried many selector configurations, but it doesn't work. Simply nothing happens.

    my (in development) web is:
    http://www.antoniocaparrelli.com/a/

    the debug mode in ON

    and the selectors are:

    Content CSS Selector: #posts
    Post CSS Selector: #posts div.post
    Navigation Links CSS Selector: div.page-nav
    Previous posts CSS Selector: div.page-nav div.alignleft a:first

    If you can give a quick look at it for an opinion I'll apreciate so much.

    Thank you.

  28. beaver6813
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Ant0nio
    Looks like infinite-scroll isn't even loading. Theres another javascript error on the site that might be causing this.

    j is not a function
    http://www.antoniocaparrelli.com/a/wp-content/plugins/hold-your-color/js/hyc.js?ver=3.2.1
    Line 51

    Try disabling that and let me know if you have any luck, your selectors look correct :)

  29. ant0nio
    Member
    Posted 2 years ago #

    It works now!
    Thank you so much! :)

  30. ant0nio
    Member
    Posted 2 years ago #

    ops! Something strange has happened. Now the FB sharer button and the one of google plus doesn't appear in the posts added by infinite-scroll.
    should I add some javascript in the admin panel?

    Thanks again ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic