top menu highlight when child menu active?

top menu highlight when child menu active? was created by bjamminb

Posted 13 years 2 months ago #93
hi

is it possible to keep the top menu category highlighted when its child menu items become the active page?

for example.. on my site, if you go to "PRESS" and then on the left side menu click "reviews" i would like the glow to remain active over "PRESS"

the reviews page is a sub-category of "press" but remains hidden on the top menu

www.bem-management.co.uk/caduga/joomla/index.php/presspage

hope you can help!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: top menu highlight when child menu active?

Posted 13 years 2 months ago #94
it should be possible but only if your press menu is the same menu but with different level items in the module configuration. Then the item 'press' will have the active parent class and you can play with css

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: bjamminb

Please Log in or Create an account to join the conversation.

Replied by bjamminb on topic Re: top menu highlight when child menu active?

Posted 13 years 2 months ago #95
thanks, that did the trick

is it possible to keep the fancy effect active in this situation as well?

once i go into a sublevel it disappears from the top menu, i would like it to remain highlighted and active if possible

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: top menu highlight when child menu active?

Posted 13 years 2 months ago #96
in the file fancymenu_CK.js try to replace these lines
Code:
// if no active element in the menu, get out if (!$(menu).getElement('.current')) return false;

with this
Code:
// if no active element in the menu, get out if (!$(menu).getElement('.active')) return false;

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by bjamminb on topic Re: top menu highlight when child menu active?

Posted 13 years 2 months ago #97
perfect, thank you so much for the help

Please Log in or Create an account to join the conversation.

Time to create page: 0.705 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 627 guests and no members online