Tagged: menu
-
AuthorPosts
-
April 20, 2015 at 11:53 pm #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.
April 21, 2015 at 8:21 pm #432333Hi 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,
ElliottApril 22, 2015 at 12:11 am #432458This reply has been marked as private.April 22, 2015 at 6:05 pm #433019Hi!
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!
ElliottApril 24, 2015 at 8:56 pm #434416Thanks 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!
April 26, 2015 at 10:27 am #434813Hey!
I’m not sure if you got your problem fixed or not? Please let us know if you should have any further issues.
Regards,
RikardApril 27, 2015 at 4:29 pm #435373This reply has been marked as private. -
AuthorPosts
- The topic ‘Page Sidebar Navigation Menu options’ is closed to new replies.