• Resolved ombligodeluna

    (@ombligodeluna)


    Hello everyone!

    I’m trying to change the visited links color and I have no idea how, it changes to white but my background is white and every time I open a link it seems to disappear because it blends with the background, I want it to stay the same color as if I hadn’t clicked on it yet. I tried with this code:
    #page a:visited {
    color: #803042;
    }

    But it turns my header and footer menus to that color, as well as some buttons. I just want any link on my website to NOT change color after being visited.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ombligodeluna

    (@ombligodeluna)

    I used “inspect” to check on the element and there’s an index file that’s writing this code and is making all my visited links white:
    a:visited {
    color: white;
    }

    How can I change that file? I just cannot find a solution to this

    Thread Starter ombligodeluna

    (@ombligodeluna)

    Next update: If i put the !important tag in the custom css code above it does override the white, but it’s the same problem as before, it also changes the color of a lot of things; the menu, footer, buttons and some of the wordpress toolbar links.

    Hi @ombligodeluna,

    Try to use entry-content class to target the link only inside the body content. Something like this should work

    .entry-content a:visited {
        color: ff0000;
    }

    I hope it will help.

    Kind regards,
    Herman 😊

    Thread Starter ombligodeluna

    (@ombligodeluna)

    Thank you @bsfherman
    Turns out there was something in the footer that was changing color and it overrode everything else since it was at the bottom, sneaky code.

    Thank you for the update, @ombligodeluna. Good to know that you figured it out.

    Feel free to start a new thread if there is anything else related to Astra we can help you with.

    Kind regards,
    Herman 😊

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to change the visited links color and not affect the header/footer menu?’ is closed to new replies.