- This topic is empty.
-
AuthorPosts
-
February 7, 2019 at 2:39 am #282390Bones_JonesParticipant
hi guys,
i have a noob question.
here is the link to wordpress website
https://tinyurl.com/y8akcwsjwhen i click on PROJECTS, it turns blue. it stays blue. When i click on an individual project the PROJECTS tab turns back to black.
this happens in portfolio pages(pages that i create in ‘portfolio’ instead of ‘page’ and any child pages.
i just want parent page menu items to remain highlighted in blue when child pages are selected…please help!
thx in advance.February 7, 2019 at 12:50 pm #282438Bones_JonesParticipantplease help… it just seems so hard to work around the wordpress menu…
February 8, 2019 at 11:46 pm #282549Bones_JonesParticipanti did try something like
li#menu-item-1573 {
color: #32bff2;
}but doesn’t work…
February 9, 2019 at 5:36 am #282553ShikkedielParticipantThis is the identifier used in the CSS for the color:
.fusion-main-menu .fusion-widget-cart-counter > a::before, .fusion-main-menu > ul > li > a
It might be important to target
a
itself instead of the parent.February 9, 2019 at 9:11 pm #282585Bones_JonesParticipantthx.
so i tried this
.fusion-main-menu .fusion-widget-cart-counter > a::before, .fusion-main-menu > ul > li > a {color:#27c4ea;}but it turns everything blue though. what did i do wrong?
February 10, 2019 at 6:03 am #282615ShikkedielParticipantI was just referring to the general rule in the stylesheet, you would only need the last identifier to target the menu links. And if you want to change that single particular link, then you could just add
a
to what you already came up with:#menu-item-1573 a { color: #32bff2; }
February 10, 2019 at 1:08 pm #282626Bones_JonesParticipantwow thank you! i totally forgot about the ‘a’! gosh i feel so stupid!! thank you again!
February 10, 2019 at 4:32 pm #282630Bones_JonesParticipantactually when i did that ‘PROJECTS’ stay blue on all pages… so i took it down…
is there anyway to make it blue just on these project pages?
February 10, 2019 at 11:36 pm #282635Bones_JonesParticipanti did try
#menu-item-1573 a:active {
color: #32bff2;
}but didn’t work…
February 11, 2019 at 6:58 am #282645ShikkedielParticipantI’m not familiar with WordPress or the particular interface you’re using… I would somehow try to make the additional style only apply to the
portfolio-items
directory. I reckon it currently applies to all and any page that is loaded.February 11, 2019 at 3:37 pm #282705Bones_JonesParticipanti think i figured it out. it had something to do with how i set up the menu. i had to put the portfolio category link instead of the page itself.
thx for your help!
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.