Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #437630

    Hello!

    I am trying to create a few text links in a text block. I do not want the text color to be the same as I have set in my styling box – but I do want the same hover color. When I change the text color using the tools in the text block – the hover link color no longer works.

    I have a sample below: The hover is working on word “knowledge” but when I change the color to dark blue – see “philosophy” the hover no longer works on the text.

    Thanks for your help!
    Anna

    #438272

    Hi annameis!

    Give you link a class like so.

    <a href = "#" class = "customLink">Click here</a>
    

    And then add this to your custom CSS.

    .customLink { color: red; }
    .customLink:hover { color: blue; }
    

    Cheers!
    Elliott

    #441740

    Thank you, I tried this, but it did not change anything. Do you have any other thoughts?

    Anna

    #441906

    Hi!

    Please try the following instead:

    .customLink { color: red !important; }
    .customLink:hover { color: blue !important; }
    

    Best regards,
    Rikard

    #442682

    Thank you! That worked great…really appreciate the help.
    Anna

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Text color and link color’ is closed to new replies.