WordPress.org

Ready to get started?Download WordPress

Forums

Need to change the color of one link in the nav bar. How do I do this? (5 posts)

  1. localadzoom
    Member
    Posted 1 year ago #

    Right now the code for the link reads:

    <li class="page_item page-item-794">

    The full page is: http://www.newenglandelectricalct.com/

    Want to change the "go green" link in the nav bar to green. Thanks!

  2. I would try adding this to the theme's css:

    .page-item-794 {
       color: green !important;
    }
  3. localadzoom
    Member
    Posted 1 year ago #

    Didnt work...should I place it anywhere specific in the CSS file?

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    At the bottom of your style.css

    Try it with this:

    .nav li.page_item.page-item-794 a{
    color: #94fa74;
    }
  5. localadzoom
    Member
    Posted 1 year ago #

    worked. thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags