• Resolved ejvind123

    (@ejvind123)


    Hello. I want to change the color of the link after i clicked it.

    I’ve tried with the editor, and i’ve even tried this css:

    a:visited { color: #000000;
    }
    But to no avail. Can anyone please help me out?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    There is no option in the editor to change this color. However, changing it via css the way you proposed should work.

    Are you adding this to the ADDITIONAL CSS section? Or how are you adding this css?

    If it’s not working, you can try adding !important:

    a:visited { color:?#000000?!important; }

    The code appears to work on the maintenance page that is up. However, the full theme files aren’t loading there, so it might be different from the pages you are editing.

    Thread Starter ejvind123

    (@ejvind123)

    Hi Chris,

    Thank you for your answer. It worked, but, there is an issue.

    It changes the text color on the buttons, which is not what i’m looking for.

    Is there any way to seperate this, so the link colors and button colors are different?

    I’ve taken a screenshot to illustrate the issue.
    https://i.imgur.com/aYC615Q.png

    I’ve clicked on 16, but not on 18.

    Hi there,

    This should target the visited links, but exclude any links with the wp-element-button class.

    a:where(:not(.wp-element-button)):visited { color: #000000 !important; }

    Let us know if this works for what you’re trying to do!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to change “clicked link” color’ is closed to new replies.