skip to Main Content

I’m trying to edit the menu colors on https://demo-nefeli.skarpeti.gr/

"ΕΜΕΙΣ", "ΥΠΗΡΕΣΙΕΣ" and " Η ΟΜΑΔΑ ΜΑΣ" have anchors to homepage. Since they include the ‘https://demo-nefeli.skarpeti.gr/’ in the link the template identify them as current page and set the color of the links to blue.

Is there any way to fix this using css?

I’m trying the following with no luck:

.current-menu-item  a {
    color: black; !important
    
}

2

Answers


  1. For me they are blue because of "color: var(–primary-color);" rule in style.css.

    Either way, you can use the :visited pseudoclass to style the visited links.

    and !important should be inside the semicolon (black !important;)

    Login or Signup to reply.
  2. You have to put the semicolon after the important tag:

    .current-menu-item  a {
        color: #000 !important;
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search