Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu links
#1
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!!
Reply
#2
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.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply
#3
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>
Reply
#4
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";
Reply




Users browsing this thread: 1 Guest(s)