[Resolved] Color HTML Anchor in menu

Home Forums Support Color HTML Anchor in menu

  • This topic has 5 replies, 2 voices, and was last updated 6 months ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1123965
    Eva

    Hi,
    Happy 2020!
    I am working on a web site using GP 2.4.1 and GPP 1.9.1.
    I am using HTML anchors on the homepage and and in the menu. I would like to change the color of the text of these links on mouse over, like the links to the other pages (pers, blog). How can I make that work?
    Thank you!
    Eva

    #1124017
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this is the CSS you are looking for:

    .main-navigation .main-nav ul li[class*="current-menu-"] > a:hover {
        color: #000000;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know if this helps 🙂

    #1124380
    Eva

    Thank you Leo,
    it works just fine!
    By the way, can I do the same with the current text link in the menu?

    Thanks again,
    Eva

    #1125063
    Leo
    Staff
    Customer Support

    The current text link option should be in the customizer.

    I wouldn’t suggest doing that though as all the anchors on that page would turn to the color you set.

    #1125126
    Eva

    Hi Leo,
    I know the current text link option is in the customizer. I was just curious if there is a way to avoid all anchors on the page to turn to the color set. But it’s ok. I will just leave it as it is, and mark this topic as resolved 🙂

    Thanks for the great support, as always!

    #1125181
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.