1. queback
  2. Commercial Templates
  3. Thursday, 17 September 2015
  4.  Subscribe via email
Hi Claran,

I'd need to highlight a particular main menu item when we click on different links towards articles.
I have a module in which there are many links, each link goes to an article but the client wants to highlight one on the 3 main menu item depending on the product category.
I explain, we have products for Cranes, Heavy Machinery and Offshore. The good category has to be highlighted in the main menu when we click on one of these links. For now, it doesn't work, the highlighted menu item is the last we've clicked before in the main menu.
A picture would help I'm sure. In the first example, the product is an Offshore product but that's the cranes section that is highlighted, not good.
Is there a way, maybe through custom CSS, to choose which menu item should be highlighted ? It would be of great help so thanks in advance for your time!
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

You could try something like the following which will set the color to your current menu items (edit to taste)...


li.current a {
color: #B30D00 !important;
}


This will set the color to all current menu items on a page however this can be refined to a particular menu with some CSS if needed.

CiarĂ¡n
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for your answer, I'm not sure to understand but I will try a bit before annoying you once more!
Regards
  1. more than a month ago
  2. Commercial Templates
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!