WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Menu with sub text?

(1/4) > >>

Roych:
Hello

I'm having problems implementing superfish menu with smaler under text!


I would like the Main text to be [menu_title] and the subheader text to be [page_title] How do I do that?

I tryed all kinds of sf-menues but cant figure it out. Im not really very familiar with superfish menues.


I posted an image on how menu should look like!

Here is the main html code:


--- 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 ---

any idea how to do that is it even posible?

Thank you very much

Roych

jacobi22:
my solution, but it works on a WB 2.8.4, not in 2.8.3
- change the code in some core files for a new input field in the page settings == menu_subtitle and a new field menu_desc for a menu point description in the title tag or in an extra field in the menu
- build new fields in the database table pages

- change the include.php from the show_menu2-module
- change the show_menu2-code code in the template

i use this for a jquery menu and in the moment, i have some problem , i lost the background-color in the submenus, so, i'm not finish

Roych:
thank you for anwser.

Im using 2.8.3 and I don't wan't to upgrade because 2.8.4 is not yet very stable and have had some issues with it.
I'd like to get it done using show-menu2 it has to be a way.

Not working code!

--- Code: ---<?php show_menu2(
        $aMenu          = 1,
        $aStart         = SM2_ROOT,
        $aMaxLevel      = SM2_ALL,
        $aOptions       = SM2_ALL|SM2_PRETTY,
        $aItemOpen      = '[li] [a][menu_title]</a>',
        $aItemClose     = '</li>',
        $aMenuOpen      = '<ul id="current">',
        $aMenuClose     = '</ul>',
        $aTopItemOpen   = false,
$aTopMenuOpen   = '<ul class="sf-menu">',
        $aTopMenuOpen   = false,
        $alastbutton   = true

); ?>
--- End code ---



If there is [menu_title] there, then somehow this could be done by implement the [page_title]. But can't figure it out.

thank you

Roych

jacobi22:

--- Quote from: Roych on November 19, 2013, 11:16:28 PM ---because 2.8.4 is not yet very stable and have had some issues with it.

--- End quote ---

not stable??   :-D :-D :-D

i'm sure, we dont talking from the same WB  ;-)

use <span> for the subtitle, like

--- Code: ---<li class="[class]"><a href="[url]" target="[target]">[menu_title]<span>[page_title]</span></a>
--- End code ---
or

--- Code: ---<?php show_menu2(
        $aMenu          = 1,
        $aStart         = SM2_ROOT,
        $aMaxLevel      = SM2_ALL,
        $aOptions       = SM2_ALL|SM2_PRETTY,
        $aItemOpen      = '[li][a][menu_title]<span>[page_title]</span></a>',
        $aItemClose     = '</li>',
        $aMenuOpen      = '<ul id="current">',
        $aMenuClose     = '</ul>',
        $aTopItemOpen   = false,
        $aTopMenuOpen   = '<ul class="sf-menu">',
        $aTopMenuOpen   = false,
        $alastbutton   = true

); ?>
--- End code ---

and a simple css with a display:block for the span-element, like this

--- Code: ---#menu li a span {display:block;font-size:10px;}
--- End code ---
maybe you have to change the menu-ID in the css (#menu is my ID for the menu-block)

jacobi22:

--- Quote from: jacobi22 on November 19, 2013, 11:55:31 PM ---i'm sure, we dont talking from the same WB  ;-)

--- End quote ---

i understand, that wb 2.8.4 is not finish now and every day we have new changes in the svn, so it can be a risk

Navigation

[0] Message Index

[#] Next page

Go to full version