WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Mega Menu
Craxx:
Hy Robin,
i send you a pm ;-)
best regards
Craxx;-)
nibz:
Got the link, but you allready found the problem.
Regarding the logo.
You allready use a bigger logo and you can change the positioning by adding the following to the css in .logo
--- Code: ---top: -5px;
--- End code ---
Where -5 can be any number, it depends on the height of the logo and the desired position of the logo.
Hope that works for you!
Craxx:
Hy Robin thx for your help.
With this i can position the logo, thx.
top: -15px;
But when the logo is bigger, the slider below is messed up ??
Best regards
Craxx;-)
nibz:
You also need the change the height of the .basic class
to e.g. 60px
nibz:
And small tip (i will also change this in the upcoming version)
The show menu2 call has to be a little bit different (so in the 'mobile' version you can see the level indicator in the menu).
It now is:
--- Code: ---<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_NUMCLASS|SM2_PRETTY, '<li id="p[page_id]"><a href="[url]" class="[class]">[if(level=4){<span>- </span>}][if(level=5){<span>-- </span>}][menu_title]</a>', '</li>', '[ul]', '</ul>', false, '<ul class="mega-menu">');?>
--- End code ---
we need to change the first level=4 to level=1 and level=5 needs te be level=2 (if you use the template at the root of your site, and you do!).
So the code needs to be:
--- Code: ---<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_NUMCLASS|SM2_PRETTY, '<li id="p[page_id]"><a href="[url]" class="[class]">[if(level=1){<span>- </span>}][if(level=2){<span>-- </span>}][menu_title]</a>', '</li>', '[ul]', '</ul>', false, '<ul class="mega-menu">');?>
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version