News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Home hihglighted when it shouldn't be ?

Started by sykic, December 07, 2006, 10:57:34 AM

Previous topic - Next topic

sykic


I noticed this because I am using ssi_menubar();

and Home item is always highlighted

this is also true in the forum ie home is highlighted when nothing should be highlighted
ie you are not at the home page

any ideas how to get nothing hihlighted in the menu

Sykic

B Patterson

I'm pretty sure it defaults to "home" if there is nothing selected, since theoretically that's where you should be ;)

But to change that (using SMF 1.1 default template) just go into Themes/default/index.template.php and open it up.  Look for the following line:
function template_menu()
Inside that function, look for:
$current_action = 'home';
Just make it an empty string:
$current_action = '';
Now, nothing should be highlighted if the action isn't recognized.

sykic


Advertisement: