Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #364733

    Pamela
    Participant

    Hello,
    I know how to change the overall links color and hover colors, but when I create a link with code the links don’t appear with the link color. How do I fix this and also how do I add an underline globally for all links.

    Thanks!
    Pam

    #364963

    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    Would you mind sharing us your admin credential so we could see the code or the setup.

    Share us also the details where is the code located.

    Don’t forget to set it as private reply.

    Thanks.

    #369474

    Pamela
    Participant
    This reply has been marked as private.
    #369662

    Christian
    Moderator

    Hey there,

    That is because a link in a headline element is different.

    The link gets the color of the Headline and the hovered color gets the color from the Site Links that is set in Customize > Typography. This is the intended design.

    If you wish to modify it, add the code below in your Appearance > Customize > Custom > CSS.

    h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: blue;
    }
    
    h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: red;
    }

    Hope that helps. 🙂

    #370283

    Pamela
    Participant

    I figured it was something like that. Worked like a dream, thanks!

    Pam

    #370545

    Friech
    Moderator

    Glad you sorted things out. Cheers!