Bootstrap Vertical Menu in sidebar stacking order problem
-
Hello All
I’ve been struggling with this problem for a few days now trying various solutions found online but nothing is working. I am trying to create my first Bootstrap 3 site with WordPress. I am wanting to create a vertical menu which should be responsive. The only way I can think how is to put it in the sidebar? It works fine except of course if the window resize the menu is jumping to the bottom where I need it to go to the top. I’m working locally so I don’t have a link to post but I’m hoping someone could give me some advice please?
This is the script that was suppose to work according to a tutorial:
<script type="text/javascript"> (function($) { var $window = $(window), $html = $('#menu-bar'); $window.resize(function resize() { if ($window.width() < 768) { return $html.removeClass('nav-stacked'); } $html.addClass('nav-stacked'); }).trigger('resize'); })(jQuery); </script>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Bootstrap Vertical Menu in sidebar stacking order problem’ is closed to new replies.