[Support request] possible to highlight the nav based on author of post?

Home Forums Support [Support request] possible to highlight the nav based on author of post?

Home Forums Support possible to highlight the nav based on author of post?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #769538
    sparkle

    hi, i’ve made a cpt-ui / acf setup with elementor to create a portfolio. i have created an archive and a portfolio item detail layout.

    when the portfolio item detail post is selected, i would like for the secondary navigation item to highlight based on the author of the portfolio item post. is this possible or have i set this up poorly.

    #769543
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    It depends on if the menu item has an HTML class that relates it to the current item being viewed.

    For example, WP adds the current-menu-item class to menu items when we’re viewing that page.

    I took a quick look and I didn’t see any classes that would help really. There is a postid-xx class where xx is the ID of the post. I suppose you could use CSS to target specific items, but it would be a big manual process.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.