WebsiteBaker Support (2.8.x) > Templates, Menus & Design
template AdventureStrap Light menu
(1/1)
Klimentiy:
Hi! Help with a problem in the template AdventureStrap Light. I need when clicking on the 0 level of the menu opens the page. Here is the code menu.
Thanks to everyone who helped.
<!-- **********************************************************
NAVIGATION
************************************************************ -->
<nav class="navbar navbar-default">
<div class="container">
<div id="navbar" class="navbar-collapse collapse">
<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL | SM2_ALLINFO, '<li class="[if(class=menu-current||class=menu-parent){active}] [if(class==menu-expand&&level==0){dropmenu}] [if(level==0){color-random}] [if(class==menu-expand&&level==1){dropdown-submenu}]">[if(class==menu-expand){<a href="[url]">[menu_title] <i class="fa fa-caret-down"></i></a>}else {<a href="[url]">[menu_title]</a>}]', '</li>', '<ul class="[if(level==0){nav} else {dropdown-menu}]">', '</ul>', false, '<ul class="nav navbar-nav navbar-left">') ?>
</div><!-- /#navbar -->
</div><!-- /.container -->
</nav>
instantflorian:
The concept of this template is: Create Menu Link objects on the first level of your site which link to the content pages on the 2nd level. Otherwise you will not succeed with this template.
Navigation
[0] Message Index
Go to full version