Support » Fixing WordPress » Changing color of text in menus – what am I doing wrong?

  • jderouen

    (@jderouen)


    I am altering a child theme via custom CSS, and am using the following. It does change the color, but only after I click on it. After it becomes a visited link, it goes back to white:

    #menu-item-506 a:link {
    	color: #00FF00;
    }
    
    /* unvisited link */
    #menu-item-506  a:visited {
    	color: #00FF00;
    }
    
    /* visited link */
    #menu-item-506 a:hover {
    	color: #00FF00;
    }
    
    /* mouse over link */
    #menu-item-506 a:active {
    	color: #00FF00;
    }

    This is my website: joederouen.com>/a>

Viewing 1 replies (of 1 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Open your website in Google Chrome.
    Right click on the page element you want to style.
    Select ‘Inspect element’.
    A new toolbar appears. Look on the right.
    If there is CSS applied to that element, you need to use the same or more specific CSS selectors to override it.

Viewing 1 replies (of 1 total)
  • The topic ‘Changing color of text in menus – what am I doing wrong?’ is closed to new replies.