Forums

Change color of "Current" Page in the Menu (2 posts)

  1. JaymeNYC
    Member
    Posted 2 years ago #

    My menu is a light gray but I would like to show the page the website is aactually on as highlighted.. My menu before I converted the template to wordpress is like this:

    <ul>
    <li id="menuactive"><a href="/">Home</a></li>
    <li><a href="/review-method">Projects</a></li>
    <li><a href="/blog">About</a></li>
    <li><a href="/blog">Contact</a></li>
    </ul>

    How would I add the "menuactive" ID? or is there another way?

  2. dsdeur
    Member
    Posted 2 years ago #

    WordPress will add a .current_page_item class to the link of the page thats active. So instead of adding the menuactive ID/class just style the .current_page_item in your css file.

    Hope this will help.

    Greetz,

    Durgé
    Dimics.com

Topic Closed

This topic has been closed to new replies.

About this Topic