By default, menus are output with basic html similar to the following:

<ul class="menu_top">
  <li class="li_0 li_title_a">
    <a title="Title" href="/">Title</a>
  </li>
  <li class="li_1 li_title_b">
    <a title="Title2" href="/">Title2</a>
  </li>
</ul>

menu_top

You can change the class used for the topmost <ul> in your template.php file using the $GP_MENU_CLASS global variable:

...
<div id="menuwrap">
<?php
$GP_MENU_CLASS = 'my_class';
gpOutput::Get('TopTwoMenu');
?>
</div>
...

Html

Menus will always follow a hierarchical <ul>... <li>... structure, but you can customize the format the html within each <li>...</li>. For example, if you want a <span> element within each <a> element you could do the following:

...
<div id="menuwrap">
<?php
$GP_MENU_LINKS = '<a href="{$href_text}" {$attr}><span class="sub-t">{$label}</span></a>';
gpOutput::Get('TopTwoMenu');
?>
</div>
...

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register