Styling a single top level navigation link differently

Posted by Community Admin on 05-Aug-2018 22:58

Styling a single top level navigation link differently

All Replies

Posted by Community Admin on 24-Feb-2012 00:00

Is there a way to apply a different style to one navigation link? I am using the horizontal menu and would like the link to one page to stand out more than the others.

Posted by Community Admin on 25-Feb-2012 00:00

You could use pure CSS with nth-child or some sort of other selector, but the problem is it's only for modern browsers LINK

I'd suggest using jQuery to tag the item with a CSS class you can then style.  If the page is public somewhere I can give you the script if you'd like?

Something like this perhaps?

$(document).ready(function()
   //Find the element, give it a class
  $("#yourmenuwrapper :contains('FAQ')").addClass("important-menu-item");
);

Posted by Community Admin on 27-Feb-2012 00:00

Thanks for the suggestions. I'll give them a try.

This thread is closed