WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Menu with sub text?
Roych:
Didn't mean unstable just meant that it didn't work out for me, lol :oops:
yeeey!
Thank you, it looks Perfect. I used this.
--- Code: --- <nav>
<ul id="nav" class="sf-menu">
<li><?php show_menu2(
$aMenu = 1,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL|SM2_PRETTY,
$aItemOpen = '[li][a][menu_title]<span class="subheader">[page_title]</span></a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul class="sf-menu">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = '<li class="sf-menu">',
$aTopMenuOpen = false,
$alastbutton = true
); ?>
</li>
</ul>
</nav>
--- End code ---
but I think I did something wrong implementing it my subs are not as the should be what did I miss?
My original html
--- Code: ---<nav>
<ul id="nav" class="sf-menu">
<li><a href="index.html">home<span class="subheader">welcome</span></a></li>
<li><a href="blog.html">blog<span class="subheader">read me</span></a></li>
<li class="current-menu-item"><a href="page.html">about<span class="subheader">great features</span></a>
<ul>
<li><a href="page-full.html">Fullwidth Page</a></li>
<li><a href="page-features.html">Features</a></li>
<li><a href="page-typography.html">Typography</a></li>
<li><a href="page-icons.html">Icons</a></li>
</ul>
</li>
<li><a href="portfolio.html">portfolio<span class="subheader">recent work</span></a></li>
<li><a href="contact.html">contact<span class="subheader">get in touch</span></a></li>
<li><a href="#">Grab it!<span class="subheader">Get it here</span></a></li>
</ul>
</nav>
--- End code ---
But have another question is it posible that my submenus dont show [page_title] and are normal?
I know stupid questions, but would really appreciate help on this :wink:
thank you
Roych
jacobi22:
--- Quote ---But have another question is it posible that my submenus dont show [page_title] and are normal?
I know stupid questions, but would really appreciate help on this
--- End quote ---
thats, what i write in my first post here
Roych:
I didn loose my background color on my submenus, my problem is they all look the same as the main menu.
evaki:
@jakobi
Arbeite gerade an der gleichen Aufgabe
(Gehe davon aus, daß dieses Template gemeint ist -"schönes Teil")
Bei mir scheint es zu funktionieren:
--- Code: ---<nav>
<?php show_menu2(
$aMenu = 1,
$aStart = SM2_ROOT,
$aMaxLevel = SM2_ALL,
$aOptions = SM2_ALL|SM2_PRETTY,
$aItemOpen = '[li][a][menu_title]<span class"subheader">[page_title]</span></a>',
$aItemClose = '</li>',
$aMenuOpen = '<ul id="nav" class="sf-menu">',
$aMenuClose = '</ul>',
$aTopItemOpen = false,
$aTopMenuOpen = false,
$alastbutton = true
); ?>
</nav>
--- End code ---
templates/modus/css/style.css
--- Code: ---
#nav li a span {display:block;font-size:10px;}
#nav>li>a:hover,
#nav>li.current-menu-item>a,
#nav>li.menu-current>a,
#nav>li.current_page_item>a{
background: #303232;
background: rgba(0,0,0,.2);
border-bottom: solid #1c1d1d 5px;
}
#nav>li.current-menu-item>a,
#nav>li.menu-current>a,
#nav>li.current_page_item>a{
color: #fe8300;
}
#nav>li>a>.subheader{
--- End code ---
MfG. Evaki
jacobi22:
--- Quote ---Bei mir scheint es zu funktionieren:
--- End quote ---
bei mir auch :wink:
falls das oben so rüber kam, das es in WB 2.8.3 nicht ginge.... ich meinte, das ICH nur noch in WB 2.8.4 baue
hier auch eine schöne Lösung von DarkViper -> http://www.WebsiteBaker.org/forum/index.php/topic,26589.msg181998.html#msg181998
P.S.:Template war bei mir Eigenproduktion
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version