This topic has 3 replies, 2 voices, and was last updated 10 years by iamj_kim.

  • Author
  • #22982
     iamj_kim
    Participant

    Hi, how can one turn off the scrolling across effect of the Avatars when viewing the Newest/Active/Popular members? The reason I’m asking is I’m hoping it will speed up the viewing of the site.

    Thanks.

    #23263
     iamj_kim
    Participant

    Got it. commented out javascript in custom_buddypress/bp-functions.php. How can I reflect that in the child-theme so it won’t be deleted when updating the theme?

    #23596
     Catalin
    Moderator

    Hello,

    You need to rebuild the code in functions.php from your child theme in order to keep the modifications if you update the theme.

    Give me more details about the modifications you did and I will be able to help.

    Thank you,
    Catalin

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #23674
     iamj_kim
    Participant

    Thanks Catalin. I commented out lines 1483-1522 in BP-Functions (see below)…

    // <script type=”text/javascript”>
    // jQuery(document).ready(function() {

    // jQuery(“.members-switch”).click(function() {
    // var bpMembersContext = jQuery(this).parent().parent();
    // var container = “ul.kleo-bp-“+jQuery(this).attr(‘data-id’)+”-members”;

    // jQuery(“ul.item-list”, bpMembersContext).hide();
    // jQuery(“.members-switch”).removeClass(“selected”);
    // jQuery(this).addClass(“selected”);
    // jQuery(container, bpMembersContext).show(0, function() {
    // jQuery(container+” li”).hide().each(function (i) {
    // var delayInterval = 150; // milliseconds
    // jQuery(this).delay(i * delayInterval).fadeIn();
    // });
    // });
    // return false;
    // });
    // });

    // jQuery(function () {
    // if (!isMobile()) {
    // jQuery(‘.kleo-bp-active-members’).hide();
    // jQuery(‘.section-members’).one(‘inview’, function (event, visible) {
    // if (visible) {
    // var container = “.kleo-bp-active-members”;
    // jQuery(container).show(0, function() {
    // jQuery(container+” li”).hide().each(function (i) {
    // var delayInterval = 150; // milliseconds
    // jQuery(this).delay(i * delayInterval).fadeIn();
    // });
    // });
    // }
    // });
    }

    });

    </script>
    JS;

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?