Hi,
I am using the {menu} tag to display menus and I'm having a problem with the active menu item.
The active menu item isn't recognised as a link and therefore doesn't inherit the css style of 'a' or even 'a:active'. Instead it has the default formatting of 'h3'.
I can change the style for h3 but this is not ideal as it still doesn't act like a link (I want it to react like other menu items on hover).
My question is, how can I make the active menu item a link so that it will use the same styles as other menu items?
Thank you.
[Solved] make active menu item a link
[Solved] make active menu item a link
Last edited by Anonymous on Wed Aug 20, 2008 6:43 am, edited 1 time in total.
Re: make active menu item a link
Use a custom menu template or use minimal_menu.tpl...
Look at bold words below \/ on how to do it if not sure...
Look at bold words below \/ on how to do it if not sure...
-
christiaans
- Power Poster

- Posts: 300
- Joined: Tue Mar 04, 2008 10:37 am
Re: make active menu item a link
True, it takes just a little bit of reading the help files in most cases.mark wrote: Use a custom menu template or use minimal_menu.tpl...
Look at bold words below \/ on how to do it if not sure...
Just to get you started:
Code: Select all
{if $node->current == true}
<a href=......
{/if}Re: [solved] make active menu item a link
Thank you, specifying the template as minimal_menu.tpl did the trick.
Just a question: if no template is specified in the tag which template is used?
Just a question: if no template is specified in the tag which template is used?
Re: [Solved] make active menu item a link
I believe...
simple_navigation.tpl
simple_navigation.tpl

