GetSimple Support Forum

Full Version: Menu links
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Well it is not a big problem, but very importans impovement for me:

I need to change links in my menu from:

<li class="subpage" ><a href="http://www.domain.com/subpage" title="any title">My subpage</a></li>

to:

<a href="/subpage">My subpage</a>

thanks for help!!
qlwik1 Wrote:Well it is not a big problem, but very importans impovement for me:

I need to change links in my menu from:

<li class="subpage" ><a href="http://www.domain.com/subpage" title="any title">My subpage</a></li>

to:

<a href="/subpage">My subpage</a>

Why?
It's best practice to group a menu in a list, and this is not only for handicapped users. You can style the list in a way that you can't see a difference between having it or not.
mvlcek Wrote:
qlwik1 Wrote:Well it is not a big problem, but very importans impovement for me:

I need to change links in my menu from:

<li class="subpage" ><a href="http://www.domain.com/subpage" title="any title">My subpage</a></li>

to:

<a href="/subpage">My subpage</a>

Why?
It's best practice to group a menu in a list, and this is not only for handicapped users. You can style the list in a way that you can't see a difference between having it or not.


That's right, but for one site I need to cut out as much code as possible.

It can be also like:

<li><a href="/subpage">My subpage</a></li>
ok i got it, in file admin/inc/theme_functions.php must be changed line 349 to

$menu .= '<li><a href="/'.($page['url']).'">'.$page['menu'].'</a></li>'."\n";