Need help with hover-over navigation in header

[ad_1]

I am a complete rookie and I have tried to add custom CSS to change the color of my navigation items when a visitor hovers over them, but I cannot get it to work. I want the text to be white by default, and #FFBD59 when hovering.

I also like the small icons in front of my header, but they stick to the top of the field, not the center. I would prefer that they are always at the same level.

This is how it looks at the moment (travelingkunz.com)

https://preview.redd.it/mew6scaye6ed1.png?width=1830&format=png&auto=webp&s=0a312cc9f05ca82ce2c4c6ad04c96b4c16ccbc42

I use the Twenty Twenty-Four Version: 1.2 Theme, not editor plugins.

How can I adjust this? Can someone provide CSS and also tell me how/where to apply it?

I have a similar issue with my posts page. The title is a link, but if the visitor hovers over it, it turns into the same background color, so the text seems to disappear. I want the hover color to be black or white.

I am glad about any support 🙂

https://preview.redd.it/svmvijd1f6ed1.png?width=1325&format=png&auto=webp&s=01312c2c8a155b4ecc7666cfe9fff9c294027887

[ad_2]
2 Comments
  1. Under Styles I tried ti add these additional CSS, but it does not work

    *****css / Default color */ nav a { color: white; }

    /* Hover color */ nav a:hover { color: #FFBD59; }

    and

    css / Hover color for links / .post a:hover { color: black; / or white as needed */ }

  2. It was likely just a specificity issue.

    body nav a.wp-block-navigation-item__content:hover {
    color: #FFBD59;
    }

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer