[Resolved] Secondary navigation element button styling

Home Forums Support [Resolved] Secondary navigation element button styling

Home Forums Support Secondary navigation element button styling

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #1256128
    Carsten

    Hi there, how do I style the buttons background color in my Secondary navigation element, without using the general selectors influencing all other buttons.

    button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited, a.wp-block-button__link:not(.has-background)

    I could style each button by id, but there must be an easier way?

    Which classes can I use for my Secondary navigation element buttons alone?

    #1256615
    Leo
    Staff
    Customer Support

    Hi there,

    Where can I see the secondary navigation with the buttons in your site?

    #1256663
    Carsten

    I added my site url, the secondary navigation should be visible on all pages

    #1256960
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This should help:

    .sub-navigation a.button, .sub-navigation a.button:visited {
        ...
    }
    
    .sub-navigation a.button:hover {
        ...
    }
    #1256965
    Carsten

    Thanks very much

    #1257436
    Carsten

    Resolved

    #1258114
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #1337035
    Carsten

    Hi there, you helped me out with my secondary navigation styling, but how do I add the styling for the active button?
    I have tried to add .sub-navigation a.button:active { color: red; } but this is not working?

    Thanks!

    #1337683
    Leo
    Staff
    Customer Support

    What’s the password to your site so we can see the issue?

    #1337703
    Carsten

    I removed the password so you can login as

    user: generatepress
    pass: SgNH*5oqdPrs69vdeF!2tsXh

    The .sub-navigation a.button:active { color: red; } is not added, as I was testing it out:

    #1337853
    Leo
    Staff
    Customer Support

    Sorry where can I see this navigation you are referring to?

    I only see the menu toggle and slideout navigation on the home page.

    Let me know πŸ™‚

    #1337917
    Carsten

    The secondary navigation is only visible for logged in users, which was why, I sent you login credentials.

    Thanks

    #1337928
    Leo
    Staff
    Customer Support

    Ok I’m logged in but still don’t see a second navigation.
    https://www.screencast.com/t/9TFMXS8Es

    What am I missing?

    #1337945
    Carsten

    Did you try to navigate away from that page? πŸ˜‰

    #1338126
    Leo
    Staff
    Customer Support

    I did not as you mentioned that is should be visible in All pages in this reply πŸ˜‰
    https://generatepress.com/forums/topic/secondary-navigation-element-button-styling/#post-1256663

    How is that navigation created? It’s missing the current-menu-item class so we cannot target it.

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