• Resolved s

    (@sdnazdi)


    Hi,

    I created I created some custom post types and accordingly a main menu with some custom link named by these CPT names and links.

    example.com/cpt

    Each CPT has some posts inside it, and I created another menu for each post type with its item as the posts names of each.

    example.com/cpt/ (as archive page)
    example.com/cpt/post1
    example.com/cpt/post2
    example.com/cpt/post3

    When I go to the archive page it is ok, the main menu item become highlighted (active), but when I go to child posts, the main menu item goes back to normal color.

    Please let me know if I can do this inside Blocksy setting or I can do this with CSS, or other code snippet?

    Thanks.

    https://ibb.co/MN86wzN
    https://ibb.co/VLMVL7Q

Viewing 1 replies (of 1 total)
  • Eduard

    (@cteduard)

    Hello @sdnazdi

    Unfortunately we do not have anything like this in Blocksy because we go by the WordPress default behaviour. The behaviour should be replicable on all other themes, as that’s how WordPress’ link highlighting works like.

    I’m really sorry to say, but I do not have a code snippet to give to you as we do not have a way of modifying WordPress’ link highlighting from our end.

    Hope this clears things up!

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Activate Main Menu Item when I am in a child page’ is closed to new replies.