- This topic has 9 replies, 2 voices, and was last updated 3 years, 7 months ago by
Ying.
-
AuthorPosts
-
September 19, 2022 at 7:56 am #2347584
Justin
Hi
I’m trying to work out how to change the font weight of my secondary nav menu (top nav on my site) along with making a svg icon change its opacity when hovered over (it’s situated on the primary nav using a hook [generate_after_primary_menu]. Could someone help with the CSS for this? Link to site https://www.exclusivecarcare.co.uk/
Many thanks
September 19, 2022 at 11:26 am #2347759Ying
StaffCustomer SupportHi Justin,
You can control the typography of secondary navigation at customzier > typography > typography manager, add
secondary menu items:
https://www.screencast.com/t/Do1L8KxhQFor the SVG, go to the block element, select the button block(not buttons block), add an additional CSS class, eg.
google-review, then add this CSS:a.gb-button.google-review:hover { opacity: 0.5; }September 19, 2022 at 11:53 am #2347788Justin
Thank you for the swift response Ying
The code you gave doesn’t seem to work for the SVG Icon
September 19, 2022 at 12:24 pm #2347803Ying
StaffCustomer SupportYour previous CSS is missing a closing bracket in either of the places I marked:
https://www.screencast.com/t/QCZ8NqvIe1tWithout the
}, my CSS will not work.September 19, 2022 at 12:31 pm #2347807Justin
hi Ying
very strange as I just checked and closing brackets are not missing
September 19, 2022 at 12:40 pm #2347819Ying
StaffCustomer SupportCan you copy and paste all your CSS here and wrap it with the CODE tag?
September 19, 2022 at 12:45 pm #2347824Justin
September 19, 2022 at 12:57 pm #2347843Ying
StaffCustomer SupportThat’s exactly what I meant, you’ve missed a
}in your CSS.This part:
@media (max-width: 768px){ button.menu-toggle { font-size: 25px !important; } .main-navigation .menu-toggle { color: orange; } a.gb-button.google-review:hover { opacity: 0.5; }Should’ve been:
@media (max-width: 768px){ button.menu-toggle { font-size: 25px !important; } .main-navigation .menu-toggle { color: orange; } } a.gb-button.google-review:hover { opacity: 0.5; }September 19, 2022 at 2:00 pm #2347883Justin
now working, thanks for your help Ying
September 19, 2022 at 3:11 pm #2347914Ying
StaffCustomer SupportYou are welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.