Archived topic
CS class for "Use navigation as header"
3 replies · Started by Kevin on August 7, 2019
I want to write custom CSS that applies only to the header when "Use header as navigation" is selected.
Does GP add a class anywhere I could use?
Hi there,
There isn't a specific class added when that option is used.
It should just be the .main-navigation class.
Let me know :)
Can you suggest a way I can write CSS that targets just the "Use navigation as header"?
If the dev team accepts ideas, I'd like to suggest adding a class to the nav when "use header as navigation" is enabled.
Thanks.
Not sure why that would be needed.
When the option is checked, then the navigation becomes the header so you can just use the .main-navigation suggested above.
Are you for some reason only using the navigation as header option on some pages?