Site logo

Archived topic

'Background Current' color on sub-menu items

3 replies · Started by porkopolis on November 21, 2020

Viewing posts 1–4 of 4

I'm using GP Premium and building a child theme to replace my current theme built on the Theme Hybrid Framework.

I have a frustrating little problem with the Customizer and the colors I have setup for my primary navigation.

Here is the site address: https://porkopolis.org/t1-2020/

Clicking on the "Blog" tab, the 'Background Current' color turns red as I have set it up. How can I have it stay red when I then click on an individual blog post? Now it goes back to the chosen overall background color which is dark grey. Sub-menus for other (page) tabs work correctly.

Thank you!

Hey Leo,

First, I am relieved this was not a situation where I was confused about the Customizer. I can do CSS, if that is the answer.

Second, the code below seemed to work better for me. Your suggestion had some #ed384a colors showing up on other parts of the nav menu.

body.single-post .main-navigation .main-nav ul li.current_page_parent {
    background-color: #ed384a;
}

All good, now. Thank you very much for your help!

Glad to hear that you've figured out :)

This archived topic is closed to new replies.