Menu Point Active Font in Italic
-
Hi there,
I would like to make active menu points switch to italic (font family Robotic) , but you can only chose fontsize and boldness in the customizer...
Does anyone have an idea for a workaround in CSS?Thanks a lot!
-
Dear @wp_LayNerd
you can select the active menu point with CSS and give it a CSS style italic.Best!
Marius
-
Dear @wp_LayNerd
you can select the active menu point with CSS and give it a CSS style italic.Best!
Marius
@mariusjopen would be great to know how tho? Because as far as I could inspect the lay theme menu works a little on its own? At least when I inspect I can only identify it as "span"

And with that the site title always also reacts, so it responds to the css styles as well, which looks cheap.
I also tried this:
nav.primary a:visited {But it did not work either. As well as .active
Best,
Tim -
Dear Tim
@Tim-B
The active menu point will have a class added to it called
current-menu-item:
You can take advantage of this to target it with CSS and set it italic for example:
.current-menu-item { font-style: italic !important; }
Best wishes 🌝
Richard
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login