- This topic has 16 replies, 3 voices, and was last updated 3 years, 2 months ago by
David.
-
AuthorPosts
-
February 21, 2023 at 10:00 am #2541515
chris
Hi im really struggling to target the current navigation selection, i dont want to change the colour when selected i want to increase the font-thickness instead?
Also is there a way to make the cart amount total display next to the bag icon from woocomerce? for example if the basket is empty i want it to say £0.00 next to the cart icon?
February 21, 2023 at 10:43 am #2541567Leo
StaffCustomer SupportHi there,
i want to increase the font-thickness instead
Give this CSS a shot:
.main-navigation .main-nav ul li[class*="current-menu-"] > a { font-weight: 700; }Adding CSS: https://docs.generatepress.com/article/adding-css/
Also is there a way to make the cart amount total display next to the bag icon from woocomerce? for example if the basket is empty i want it to say £0.00 next to the cart icon?
Please open a new topic for the separate question.
Thanks!
February 21, 2023 at 11:59 am #2541649chris
Hi that CSS didnt seem to work i tried it before posting, it comes up with “[class*=”current-menu-“]” in red writing
February 21, 2023 at 12:02 pm #2541655Leo
StaffCustomer SupportI already tested it and that CSS will absolutely work. Don’t worry about the red writing.
February 21, 2023 at 12:21 pm #2541673chris
Ok i have put the css but didnt work not sure why sorry
February 21, 2023 at 12:24 pm #2541678Leo
StaffCustomer SupportIt is working:
https://www.screencast.com/t/SRebIc4tnThe value
700is overwriting the original500.The visual difference is small though.
February 21, 2023 at 12:44 pm #2541694chris
Is there a way to make the currently tab writing visually bolder another way? i cant seem to tell any difference even trying different values, sorry Leo
February 21, 2023 at 12:51 pm #2541705Leo
StaffCustomer SupportThe font you are using only goes up to 700:
https://fonts.google.com/specimen/ComfortaaYou can make the non-active state
300instead of500in the customizer to see more differences.February 21, 2023 at 1:28 pm #2541738chris
I see now the tiny change, is it possible to apply the same font but bold version to only be applied on current?
Could i just change the font-family or something with the css you gave me?
February 21, 2023 at 1:31 pm #2541743Leo
StaffCustomer Supportis it possible to apply the same font but bold version to only be applied on current?
Not sure if I understand this request – My CSS already does that and it’s working from what I can see.
February 21, 2023 at 1:35 pm #2541745chris
It does, but what i mean is to use another font eg
current font: Mont-ExtraLightDEMO
Desired font : Mont-HeavyDEMO
February 21, 2023 at 1:57 pm #2541763Leo
StaffCustomer SupportFor the current menu item only? That’s a very unusual approach.
If so you can add the
font-familyproperty to my CSS:
https://www.w3schools.com/cssref/pr_font_font-family.phpFebruary 22, 2023 at 7:26 am #2542608chris
Managed to do everything else i have wanted to design wise at this point but apply a new font to a :current nav item im struggling with.
February 22, 2023 at 9:35 am #2542927David
StaffCustomer SupportHi there,
try this CSS:
.main-navigation .main-nav ul li[class*="current-menu-"] > a { font-family: monospace; }Just change the
monospaceto the font-family you wantFebruary 22, 2023 at 9:36 am #2542928chris
Cheers David never thought to work around the issue i was scratching my head at, for anyone else whos reading fixed with:
.main-navigation .main-nav ul li[class*=”current-menu-“] > a {
font-weight: 700;
text-shadow: 0px 0 3px;}
-
AuthorPosts
- You must be logged in to reply to this topic.