A user working with the Prestige theme needs to style only the top-level navigation links without affecting the h6 headings inside the mega menu dropdown.
Problem: Current CSS selector targets both main header links and mega menu content simultaneously.
Solutions provided:
Child selector approach - Use .header__primary-nav > .header__primary-nav-item > .h6 to target only direct children
:not() pseudo-class - Use .header__primary-nav-item:not(.mega-menu) > .h6 to exclude mega menu elements (requires replacing .mega-menu with actual class name)
Both methods apply the same styling:
Font: freight-text-pro
No text transform
Zero letter spacing
17px font size
Resolution: The user confirmed one of the solutions worked successfully.
Summarized with AI on November 14.
AI used: claude-sonnet-4-5-20250929.
I’m trying to style only the main level navigation links on my site, but every selector I can find that works also changes the .h6 heading inside of the mega menu as well. How can I target ONLY the top header links and not the content of the mega menu?