- This topic has 6 replies, 3 voices, and was last updated 7 years, 2 months ago by plimfec.
- AuthorPosts
- March 22, 2017 at 11:43 pm #2508dude2k5Participant
My menu shows every other page as “highlighted” when you are on that page, except the home page. Where would that setting be?
March 24, 2017 at 8:53 pm #2555HashKeymasterCan you please show your website?
March 24, 2017 at 11:44 pm #2577dude2k5ParticipantMarch 26, 2017 at 12:28 am #2589plimfecParticipantI’m dealing with the same issue. I don’t get it done in the stylesheet, so any help is appreciated.
Thanks in advance.
March 29, 2017 at 4:40 am #2625plimfecParticipantI found the answer.
You need to force the homepage link in your site menu to get the ‘current class’ (so you can call it in your stylesheet). You can do so in the backoffice of WordPress, like explained here:
http://wordpress.stackexchange.com/questions/39529/when-at-or-home-my-menu-doesnt-get-a-current-menu-item-class (first answer)
Then you add this to your custom stylesheet:
.page-template-home-template .ht-main-navigation .current_page_item > a, .page-template-home-template .ht-main-navigation .current-menu-item > a { background: #3366CC; color: #FFFFFF; }
You can put this code wherever you normally put your custom code, but best you use a child theme for it.
March 29, 2017 at 9:35 pm #2627dude2k5ParticipantMy man.
That fixed it perfectly. Thank you very much for responding with the fix!!
March 30, 2017 at 12:26 am #2628plimfecParticipantNo problem, happy to help 🙂
- AuthorPosts
- You must be logged in to reply to this topic.