• Hi,
    Is there any way to highlight the parent menu item of the single page.

    Suppose we are on news listing page and we click the news for detail you can see active class is gone from the news menu item.

    Can we add the class?

    many Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • This would be controlled by your theme. What theme are you using? Where did you download it from?

    Thread Starter Ali Sharif

    (@alixharif)

    Hi,

    Thanks for your reply.

    I am using Twenty Sixteen Version: 1.2 and I downloaded this theme from www.ads-software.com

    the parent page menu item should have CSS classes like .current-page-ancestor and .current-page-parent

    to highlight the parent page menu item, you would need to add some CSS to style.css of a child theme or via a custom CSS plugin.

    example CSS:

    .main-navigation .current-page-parent a { color: red; }

    Thread Starter Ali Sharif

    (@alixharif)

    Thanks Michael for your reply.

    Could you please refer attached screenshot link I can’t find current-page-parent class anywhere in the main navigation.

    https://screencast.com/t/KUc7QgxC1

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Active class for single page parent’ is closed to new replies.