Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

clarkito

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Bootstrap addon carets dissapear when i center nav #3177
    clarkito
    Participant

    SOLUTION:

    DONT ADJUST ANYTHING. smartmenus is awesome for infinite submenus drilldown!!

    
    
    @media (min-width: 768px) {
      .navbar .navbar-nav {
        display: inline-block;
        float:none;
      }
    
      .navbar .navbar-collapse{
      	text-align: center;
      }
    
    }
    
    in reply to: Bootstrap addon carets dissapear when i center nav #3175
    clarkito
    Participant

    actually doing the above fixes the problem for large screen but messes the mobile view menus up…

    please help…

    in reply to: Bootstrap addon carets dissapear when i center nav #3174
    clarkito
    Participant

    i found the answer! if anyone has problem with carets disappearing when centering the nav. reading up on previous posts, @vadikom suggested updating somewhere

    in jquery.smartmenus.bootstrap.js

    
    // custom "isCollapsible" method for Bootstrap
    
    obj.isCollapsible = function() {
    	return !/^(left|right)$/.test(this.$firstLink.parent().css('float'));
    };
    

    where it says (left|right)
    change to (left|right|none)

    then the carets show when content of bootstrap smartmenu is centered too

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