BuddyBoss Home – Web Support Forums Themes Boss. theme disable profile tabs drop down menu ellipsis

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

    #47477
    @surfbuddy

    Hi guys, How can I disable the profile tabs drop down menu ellipsis to prevent it from automatically appearing?

    Answers

    #47521

    Anonymous
    @

    Hi @surfbuddy, please attached a screen shot to confirm the position where you want to disable the tabs.

    Regards
    Pallavi

    #47562
    @surfbuddy

    Here you go.

    #47773
    @surfbuddy

    Hi @pallavi just following up on the above. Thanks

    #47829

    Anonymous
    @

    Hey @surfbuddy
    you will need to removed function and its call from buddyboss.js which lies in boss/js folder

    
    /**
     * jRMenuMore to allow menu to have a More option for responsiveness
     * Credit to http://blog.sodhanalibrary.com/2014/02/jrmenumore-jquery-plugin-for-responsive.html
     *
     * uses resize.js for better resizing
     *
     **/
    (function($){
        $.fn.jRMenuMore = function(widthfix) {
          $(this).each(function(){
            $(this).addClass("horizontal-responsive-menu");    
            alignMenu(this);
            var robj=this;
    
            $('#right-panel').resize(function() {        
                $(robj).append($($($(robj).children("li.hideshow")).children("ul")).html());
                $(robj).children("li.hideshow").remove();
                alignMenu(robj);
            });
    
            function alignMenu(obj) {
                var w = 0;
                var mw = $(obj).width() - widthfix;
                var i = -1;
                var menuhtml = '';
                jQuery.each($(obj).children(), function() {
                    i++;
                    w += $(this).outerWidth(true);
                    if (mw < w) {
                        menuhtml += $('<div>').append($(this).clone()).html();
                        $(this).remove();
                    }
                });
                $(obj).append(
                        '<li  style="position:relative;" href="#" class="hideshow">'+
                            '<a href="#"><i class="fa fa-ellipsis-h"></i></a><ul>'+
                         menuhtml + '</ul></li>');
                $(obj).children("li.hideshow ul").css("top",
                        $(obj).children("li.hideshow").outerHeight(true) + "px");
    
                $(obj).find("li.hideshow > a").click(function(e) {
                    e.preventDefault();
                    $(this).parent('li.hideshow').children("ul").toggle();
                    $(this).parent('li.hideshow').parent("ul").toggleClass('open');
                });
                
     
                $(document).on('click', function(event){
                    if (event.originalEvent &&  $(event.target)[0].parentNode.parentNode.classList[0] != 'hideshow' && $(event.target)[0].parentNode.classList[0] != 'hideshow'){
                        $('li.hideshow').each(function(){
                            if($(this).parent("ul").hasClass('open')) {
                               $('li.hideshow').children("ul").hide();
                               $('li.hideshow').parent("ul").removeClass('open'); 
                            }
                        });
                        
                    }
                });
    
                if ($(obj).find("li.hideshow").find("li").length > 0) {
                    $(obj).find("li.hideshow").show();
                } else {
                    $(obj).find("li.hideshow").hide();
                }
            }
    
          });
    
        }
    
    }( jQuery) );
    

    and

    
     if(!is_mobile) {
               $("#item-nav").find("#nav-bar-filter").jRMenuMore(60);  
               $("#header-menu > ul").jRMenuMore(70);
            }
    

    Regards
    Varun Dubey

    #48117
    @surfbuddy

    Perfect, thanks @vapvarun!

    #48143

    Anonymous
    @

    🙂

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘disable profile tabs drop down menu ellipsis’ is closed to new replies.