BuddyBoss Home – Web Support Forums Themes BuddyBoss theme disable infinity scroll on mobile

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #57599
    @aaronkine

    On Mobile devices my right sidebar (right of the Activity Feed)… on mobile it floats under the Activity Feed. So now that Infinity Scroll is turned on I can never get to the Sidebar stuff because the feed keeps loading…

    How can i disable the Infinity scroll for either Mobile.. or at least a certain screen width?

    Answers

    #57602

    Anonymous
    @

    Hi @aaronkine
    Inside header.php there is a line which contain

    
    <header id="masthead" class="site-header" role="banner" data-infinite="<?php echo (esc_attr(get_option('buddyboss_activity_infinite')) !== 'off')?'on':'off'; ?>">
    

    replace above line inside the child theme

    
    <header id="masthead" class="site-header" role="banner" data-infinite="<?php
    if ( !wp_is_mobile() ) {
    echo (esc_attr(get_option('buddyboss_activity_infinite')) !== 'off')?'on':'off';
    }
    ?>">
    

    Regards
    Varun Dubey

    #57653
    @aaronkine

    perfect! thanks.

    #57721

    Anonymous
    @

    Great, I will close this topic

    Please create a new topic for any further queries.
    Regards
    Varun Dubey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘disable infinity scroll on mobile’ is closed to new replies.