WordPress.org

Ready to get started?Download WordPress

Forums

How to highlight the homepage using the new menu tool ? (3 posts)

  1. Fran6
    Member
    Posted 4 years ago #

    Hi everyone,

    I am testing the new menu navigation section and I cannot find out how to
    highlight the homepage. I used the custom page option to create a line for
    the homepage. But there is no class or id "menu-current-item" related to
    custom pages. So how can I highlight the homepage in my menu ?

    Thanks for your help ! ;-)

    Francis

  2. johnrork
    Member
    Posted 4 years ago #

    Well you should be able to target a specific menu easily enough with CSS. You can then make the home page the first item in the menu, and use the :first-child pseudo class to apply a style to only the first li.

  3. Fran6
    Member
    Posted 4 years ago #

    Hi johnrork,

    Not sure if :first-child class works here because when I am on another page, I don't want the home to be highlighted anymore. I just want the current page to be highlighted, but with the new menu options I did not find a way to include the homepage to be highlighted as a "current page"...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags