WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Highlight the parent page with different colo on menu (8 posts)

  1. dwtbc
    Member
    Posted 1 year ago #

    I would like to know if it's possible to highlight the parent page with a different color when a child page is chosen?

    I would like it to be like this example: http://www.coachingcreative.dk

    Daniel

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Which theme are you using?

  3. martinjharvey
    Member
    Posted 1 year ago #

    Try adding

    .current-menu-parent a,
    .current-menu-ancestor a{
      font-weight: bold;
    }
    to your style.css.

  4. dwtbc
    Member
    Posted 1 year ago #

    @Andrew Nevins, I am using my custom theme.

    @martinjharvey, I can't see how this would highlight with a new color for each parent link?

    I need to call each parent/current page and assign a different color for each. As it is in the link I posted

  5. Andrew
    Forum Moderator
    Posted 1 year ago #

    This isn't a WordPress issue, consider CSS-specific forums for CSS-specific issues.

  6. dwtbc
    Member
    Posted 1 year ago #

    @Andrew, well, it's still concerning a my wordpress theme, so I can't see why this isn't relevant?

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

  8. dwtbc
    Member
    Posted 1 year ago #

    @WPyogi, hehe this is a new one. As mentioned above I have problems calling the current parent page and current page and assign a different color for each of them.

Topic Closed

This topic has been closed to new replies.

About this Topic