• Resolved bob reeves

    (@bob-reeves)


    Hi,
    I am trying to change the hover colour in the header nav bar, I have tried looking for the css but can’t seem to find it, can you please help.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Theme Author Anariel Design

    (@anariel-design)

    Hi,

    this is a Custom CSS for the navigation link hover effect:

    .wp-block-navigation__container a:hover {
        color: var(--wp--preset--color--foreground);
        opacity: .8;
    }

    Hope this helps,
    Ana

    Thread Starter bob reeves

    (@bob-reeves)

    Hi @anariel-design,

    thankyou for your swift response. The hover also has two right angled half boxes top right and bottom left, this needs to change to the hover colour as well.

    Regards

    Bob

    Theme Author Anariel Design

    (@anariel-design)

    Hi Bob,

    ah yes, sorry about this.
    Here it is:

    .wp-block-navigation__container>.wp-block-navigation-item a::before {
        border-top: 2px solid var(--wp--preset--color--foreground);
        border-right: 2px solid var(--wp--preset--color--foreground);
    }
    .wp-block-navigation__container>.wp-block-navigation-item a::after {
        border-top: 2px solid var(--wp--preset--color--foreground);
        border-right: 2px solid var(--wp--preset--color--foreground);
    }

    and you can change this: var(–wp–preset–color–foreground) with your color, for example #efefef

    Hope this helps.

    All the best,
    Ana

    Thread Starter bob reeves

    (@bob-reeves)

    Thanks for that Ana,

    I will try it tomorrow and let you know how I got on.

    Regards

    Bob

    Theme Author Anariel Design

    (@anariel-design)

    Oh yes, please let me know ??

    Thread Starter bob reeves

    (@bob-reeves)

    Hi Ana,

    I have tried your css, however to make it work I had to modify it;

    .wp-block-navigation-item a::before {
    border-top: 2px solid #ff9226 !important;
    border-right: 2px solid #ff9226 !important;
    }
    .wp-block-navigation-item a::after {
    border-bottom: 2px solid #ff9226 !important;
    border-left: 2px solid #ff9226 !important;
    }

    Note the border bottom and left on the :: after css. It now works perfectly.

    On the mobile menu the padding between the label and the borders is non existant, could you please help with this css as well.

    Regards

    Bob

    Theme Author Anariel Design

    (@anariel-design)

    Hi Bob,

    you can use this:

    .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
        padding: 0 10px;
    }

    and I’ll add this to the next theme update soon ??

    Thread Starter bob reeves

    (@bob-reeves)

    Thanks once again Ana,

    I will mark this as resolved.

    Regards

    Bpb

    Theme Author Anariel Design

    (@anariel-design)

    Hi Bob,

    you are welcome. If you need any help with the theme please let me know :). And if you will have some time to rate the theme I would appreciate it a lot :).

    All the best,
    Ana

    Thread Starter bob reeves

    (@bob-reeves)

    Hi Ana,

    all done

    Regards

    Bob

    Theme Author Anariel Design

    (@anariel-design)

    Thank you soo much Bob, appreciate it :). Oh, I just uploaded a theme update with the menu hover fix on the mobile.

    All the best,
    Ana

    Thread Starter bob reeves

    (@bob-reeves)

    The update works well.

    Have you thought about adding copyright and date to the footer.

    Regards

    Bob

    Theme Author Anariel Design

    (@anariel-design)

    Hi Bob,

    oh, you can add it on your own as a block or you can write me what you would like to have and I can make a block with, that you can just copy-paste to your footer. I’ll also add this to the list for the next theme update.

    Best,
    Ana

    Thread Starter bob reeves

    (@bob-reeves)

    Thanks Ana,

    I will wait for the theme update as I have already added the copyright to the footer.

    Regards

    Bob

    Theme Author Anariel Design

    (@anariel-design)

    Oki, I added it to my list and will make an update in the next few days.

    Best,
    Ana

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Header Nav Bar Hover Colour’ is closed to new replies.