Posts: 13
Threads: 3
Joined: Jan 2011
2011-04-22, 02:42:30
(This post was last modified: 2011-04-22, 02:45:28 by eatons.)
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!!
Posts: 2,094
Threads: 54
Joined: Jan 2011
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.
Posts: 13
Threads: 3
Joined: Jan 2011
2011-04-22, 03:01:10
(This post was last modified: 2011-04-22, 03:35:57 by eatons.)
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>
Posts: 13
Threads: 3
Joined: Jan 2011
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";