• I’m creating a new site using the Twenty Twenty Three. I would like to change the styling for all the links on the site, including the top menu, the footer, and the body of each page. I would like unvisited links to be underlined and blue. Visited links should be underlined and purple. Active links should be underlined and red.

    I did some research online and tried the following CSS, but it didn’t seem to work – or maybe I entered it into the wrong place:

    /* Menu links */
    .wp-block-navigation-item__content {
    text-decoration: underline;
    }

    .wp-block-navigation-item__content:link {
    color: blue;
    }

    .wp-block-navigation-item__content:visited {
    color: purple;
    }

    .wp-block-navigation-item__content:active {
    color: red;
    }

    /* Text links */
    a {
    text-decoration: underline;
    }

    a:link {
    color: blue;
    }

    a:visited {
    color: purple;
    }

    a:active {
    color: red;
    }

    I’m fairly new to WordPress, so don’t assume too much knowledge on my part. But I can follow instructions. Thank you in advance for any help you can provide.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter feralguy

    (@feralguy)

    I found the answer on another forum. The following code has to be added to “Additional CSS”:

    a:link {color: blue !important; text-decoration: underline !important;}
    a:hover {color: red !important; text-decoration: underline !important; }
    a:visited {color: purple !important; text-decoration: underline !important;}

    Moderator Jan Mc Kell

    (@janmtm)

    Hi @feralguy !

    Thank you for sharing the resolution that worked for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.