Site logo

[Resolved] Navigation menu background within tabs

Home Forums Support [Resolved] Navigation menu background within tabs

Home Forums Support Navigation menu background within tabs

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #2525330
    ammgbr

    Hi,

    On my homepage > first accordion (title: media) > tab > first , second and third tabs > I have navigation blocks whose background appears white against the grey background of the tab.

    Is there a way to fix this so that I don’t have this white/grey outline around the navigation blocks?

    #2525341
    Fernando
    Customer Support

    Hello there,

    For clarity, can you provide a screenshot of the specific element you want to alter? I can’t seem to see the outline you’re referring to.

    Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots

    #2525613
    ammgbr

    Ofc I provided a link in the priv info

    The nav block doesn’t take the background colours of the tabs block and its outline remains white

    #2525771
    David
    Staff
    Customer Support

    Hi there.

    try this CSS:

    
    nav.wp-block-navigation .wp-block-navigation-item__content {
        background-color: transparent;
    }
    #2525869
    ammgbr

    EDIT: apologies for coming back to this, that solution solved the previous issues. It has nevertheless cancelled the submenu colour options I have set with CSS. Is there a way to fixed this? Thank you

    #2525890
    David
    Staff
    Customer Support

    Increase the specificity of your CSS like this:

    nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
        font-size: 16px;
        color: #101010;
        background-color: #EEEEEF;
    }
    #2526100
    ammgbr

    Hi, I do apologize I have tried that but now the submenu has a vertical white stripe on the side . I am unsure what part of the css I need to amend?

    #2526177
    David
    Staff
    Customer Support

    Add this CSS:

    ul ul .wp-block-navigation-item__content {
        grid-column: 1 / -1;
    }
    #2526183
    ammgbr

    EDIT: apologies, the white stripe is removed ut the on hover colour is not applied for the submenus

    #2526186
    David
    Staff
    Customer Support

    Phew… that navigation block is a mess lol
    Glad to hear its working

    #2526188
    ammgbr

    EDIT: apologies, the white stripe is removed ut the on hover colour is not applied for the submenus

    I agree, the nav block is really difficult to work with..

    #2526192
    David
    Staff
    Customer Support

    More CSS… lol :

    nav.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
        background-color: #f00;
    }
    #2526196
    ammgbr

    Hi, eventually that’s sorted now 😀

    #2526202
    David
    Staff
    Customer Support

    Glad to hear that

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.