WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
Infinite-scroll and masonry (again) (1 post)

  1. jon_xo
    Member
    Posted 2 years ago #

    Hello,

    I've tried almost everything on my site, but Infinite-scroll simply won't work. It seems the masonry javascript is not called back.

    I checked this http://wordpress.org/support/topic/plugin-infinite-scroll-masonry-infinite-scroll-what-javascript-to-call?replies=14 and thought that would help me, but the situation remains the same. I tried to copy that final solution and replace "#infinitecontent" with mine I found, which is supposed to be "#content #boxes".

    jQuery(window).load(function(){
    <?php if (get_option('thestyle_blog_style') == 'false') { ?>
    jQuery('#content #boxes').masonry({ columnWidth: 122, animate: true });
    <?php } ?>
    jQuery('#footer-content').masonry({ columnWidth: 305, animate: true });

    var $fixed_sidebar_content = jQuery('.sidebar-fixedwidth');

    if ( $fixed_sidebar_content.length ) {
    var sidebarHeight = $fixed_sidebar_content.find('#sidebar').height(),
    contentHeight = $fixed_sidebar_content.height();
    if ( contentHeight < sidebarHeight ) $fixed_sidebar_content.css('height',sidebarHeight);
    }
    });

    This quote is from the theme's original code and so I believe "#content #boxes" is what it should call back. But it doesn't. I have no experience with javascript, so can anyone please help me?

    Thanks, JT

    http://wordpress.org/extend/plugins/infinite-scroll/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.