Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
CMartell (Guest)
CMartell (Guest)
Hi all,
I'm having trouble with my menu not showing menuACTIVE when I click on certain tabs. The Home tab and about us tab changes color when I click on it but the other tabs do not. Is this a problem? Or is it just me??
 
Help!!!!
CM
 
websanity (Guest)
websanity (Guest)
Well here we are 1.5 years later and ViArt still haven't fixed the problem...
 
websanity (Guest)
websanity (Guest)
If you keep the friendly url and the page name the same, then you can edit header.php where it says:
 
if ($menu_page == $request_page || $menu_page == $current_page || $menu_page == $request_uri_path) {
 
 
and change to the following:
 
 
$find=strpos($menu_url,"page.php");
$compare='';
if ($find!==false) {
$compare="/".substr($menu_url,$find+14);
}
 
if ($menu_page == $request_page || $menu_page == $current_page || $menu_page == $request_uri_path || $compare == $request_uri_path) {
 
 
This will spot the current page when a custom page is used in the menu and will properly set the menuActive style so you can highlight the current page's menu item using the stylesheet.
 
crmartell
crmartell
Actually, if you use the Friendly URL "about" instead of "page.php?page=about" in your menu URL then the menuActive works properly.
 
Of course you need to turn on friendly urls in the Global Settings.