Highlighting menu item for current page

Hi there. I added:

.current-menu-item > .x-anchor-menu-item .x-anchor-text-primary {
color: #d4af37!important;
}

to my additional CSS to highlight the menu item for the current page.

This is working perfectly bar one menu item - Music. Which is the last item on the first part of my split menu.

Would love any pointers on how to fix that? Thanks so much.

Hi there,

Thanks for writing in! To fix the issue, you can add the following code in the Theme Options > CSS:

.page-id-256 #menu-item-33 > .x-anchor-menu-item .x-anchor-text-primary {
    color: #d4af37!important;
}

If you would like to learn CSS, I am sharing few resources that you take a look to get started with CSS and an interesting tool that you can use to speed up the development process.

I recommend you to watch following video that will help you to get started with CSS.

https://www.youtube.com/watch?v=MFR4WXiLzpc

Sometimes it can get a bit difficult to find out the right selector to be able to write the required CSS codes. A handy tool that can help you in this is Google Chrome dev tools. I am sharing the resource that you can refer to get started with dev tools.

https://developers.google.com/web/tools/chrome-devtools/css/

https://developers.google.com/web/tools/chrome-devtools/

https://www.youtube.com/watch?v=tP_kXBJWPhQ&t=200s

Hope this helps!

Thanks Nabeel. That’s all really helpful and works perfectly.

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.