Site logo

Archived topic

Target Top Level Items in Primary Nav with Mega Nav enabled

3 replies · Started by Dan on October 8, 2021

Viewing posts 1–4 of 4

Hey Guys

It's been a while since I've bothered you and hopefully this is a valid question, that I haven't been abled to find an answer to in other support requests.

I have the standard GP meganav functionality implemented on my primary nav. I want to apply some CSS design to just the top level items in the nav (i.e. not the meganav items at all) but can't seem to find the right selector to do so - all the changes I make seem to impact all the children nav elements.

Thanks

Hi Dan,

This should work:

.main-nav ul.sf-menu > li {
    //your CSS here
}

If it doesn't, can you link us to the page in question? To inspect the page and get the right selector. :D

Depressingly simple, thanks Elvin :-)

No problem. glad you got it sorted. :D

This archived topic is closed to new replies.