Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #431667

    When in Child level 3, we only want to display Child level 2 and not any menu above child level 2. How can this be configured so that each page only shows it’s immediate parent (1 level above current page) on the menu with the corresponding children in the levels below the current page. (see first screenshot attachment in private content below)

    For example, on the second screenshot attachment, when you are on that page (child level 2), we only want the child level 3 displayed as the menu

    We do not want the parent nor grandparent to show on the menu for that corresponding level that you are on.

    Please advise how this sidebar nav menu can be configured for these pages.

    I’ve tried using the widget custom menus however this seems very tedious adding visibility for each page. Perhaps there is another more efficient way of doing this.

    #432333

    Hi tlchase!

    I can’t think of a way to do that. Using the custom menu widget would probably be your best bet.

    If you want to customize the existing page sidebar nav then it’s on line 1062 in /enfold/functions-enfold.php.

    $args = array('title_li'=>'', 'child_of'=>$parent, 'echo'=>0, 'sort_column'=>'menu_order, post_title');
    

    Here is the function that is used, https://codex.wordpress.org/Function_Reference/wp_list_pages. You can set the depth option to specify how deep you want the children to display but that doesn’t sound like what your trying to do.

    Best regards,
    Elliott

    #432458
    This reply has been marked as private.
    #433019

    Hi!

    Hmm, I haven’t seen that before. Can you send us a link to your page so we can take a look? You can set your reply as private if you wish.

    Maybe something like this will align it left.

    .sidebar_left.sidebar {
      text-align: left;
    }

    Not sure about the hyphens though.

    Cheers!
    Elliott

    #434416

    Thanks Elliott, we had the left aligned but the hyphens were causing an issue but we were able to workaround with custom menus on the sidebar pages widget.

    Have a great day!

    #434813

    Hey!

    I’m not sure if you got your problem fixed or not? Please let us know if you should have any further issues.

    Regards,
    Rikard

    #435373
    This reply has been marked as private.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Page Sidebar Navigation Menu options’ is closed to new replies.