Current Page Parent

Support MB Custom Post Type Current Page Parent

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30740
    pw@grafik-designer-hannover.de[email protected]
    Participant

    How can i get a "current page parent" ancestor for a custom post type?
    In design > menus i use the archive page of this custom post type but on the single pages the page parent is not highlighted. There is no current page parent css selector.

    This is the archive page:
    https://sharing-awareness.org/veranstaltungen/

    This is a single page:
    https://sharing-awareness.org/veranstaltungen/sonntagsmeditation/
    The menu item is not highlighted.

    How to solve this problem?

    #30757
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You need to add a sub-menu SONNTAGSMEDITATION of the parent menu Veranstaltungen to use the feature "current parent page" for the menu items of WordPress. Screenshot https://share.getcloudapp.com/p9ukYND8

    #30841
    pw@grafik-designer-hannover.de[email protected]
    Participant

    Hi, thats not a useful solution, because the events in that category change and you do not want to change the menu every time. In WordPress posts current page parent is highlighted why not in metabox custom post types? Within a category you should be able to view a post and the parent category is highlighted as current page or current category parent.

    #30851
    Long NguyenLong Nguyen
    Moderator

    Hi,

    WordPress does not support highlight the menu archive page for the custom post type. I've searched and found a script code that helps you to highlight it. Find it here https://gist.github.com/gerbenvandijk/5253921

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