WordPress.org

Ready to get started?Download WordPress

Forums

menu/navigation change current class (2 posts)

  1. amarchauhan
    Member
    Posted 2 years ago #

    Hello,

    I have individual background on each of my "<a href" tags in the navigation.

    I can change the background when a user hovers over the "<a href" however what i want to do is the change the "<a href" background image when on the current page: e.g.

    <li class="page_item page-item-675 current_page_item">

    About Us

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Use the .current_page_item class.

Topic Closed

This topic has been closed to new replies.

About this Topic