Tagged: "page sidebar navigation", ismael
-
AuthorPosts
-
April 18, 2017 at 5:36 am #779070
HI there,
I have Page Sidebar navigation turned on, but it does not show grand child of page. How to turn this on?Also, is possible to show name of Parent in sidebar not as a link?
ie:
Parent Title
> Child Link
>> Grand Child Link
> Child LinkApril 18, 2017 at 7:40 am #779109Hey cptnem0,
Please, may you share your website link and the WP credentials?
About the parent question, check this plugin: http://scopeinspections.co.nz/test/
Best regards,
John TorvikApril 18, 2017 at 10:22 am #779157Hi John,
– Top left menu is standard enfold “Page Sidebar navigation” option in theme setting (*on)
– Under that menu is a custom menu in widget area (for testing)You can see the design is much more pleasant (work is done for me here) using the standard enfold built in “Page Sidebar navigation”, but the only problem it does not show 2nd layer child (grandchild).
Also I need the list to be presentable, alined etc.
What am I missing ?
April 18, 2017 at 10:23 am #779159PS. you link was not relevant .. perhaps typo?
April 19, 2017 at 1:35 am #779731Hi there, did login work for you?
April 19, 2017 at 6:52 am #779802Hi,
The child or sub menu items of the “What We Do” menu are displaying properly. It will look better if the page is using a right sidebar. Or use the following css code to change the style of the custom menu.
#top .sidebar_left .widget_nav_menu .current-menu-item > ul, #top .sidebar_left .widget_nav_menu .current_page_item > ul, #top .sidebar_left .widget_nav_menu .current_page_ancestor > ul, #top .sidebar_left .widget_nav_menu .current-menu-ancestor > ul { padding: 0; left: 13px; position: relative; } #top .sidebar_left .widget_nav_menu ul ul li a { padding: 6px 0px 7px 0px; } #top .sidebar_left .widget_nav_menu .sub-menu { padding-right: 0; } #top .widget_nav_menu ul ul .sub-menu, #top .widget_nav_menu ul ul .children { padding: 0; overflow: hidden; margin: 0; } #top .sidebar_left .widget_nav_menu .sub-menu > li > a { position: relative; right: 15px; } #top .sidebar_left .widget_nav_menu .sub-menu .sub-menu li a { right: 26px; position: relative; } #top .sidebar_left .widget_nav_menu .sub-menu .sub-menu .sub-menu li a { right: 39px; }
Best regards,
IsmaelApril 19, 2017 at 9:14 am #779847Hey that was really useful.. thanks!
> What about being able to put child pages ie: grandchild ?
April 19, 2017 at 11:32 pm #780211Hello there,
I am still wondering why you cannot answer my question..
I am trying to show sub pages of page in my sub nav. What is the code to change? If you see example below, by default in enfold “Grandchild page” does not show in sub nav, I need to show, and I don’t want to use custom menu.
Page
> Child Page
>Grandchild Page
–with permalink below for further illustration–
Mysite.com/page
> Mysite.com/page/child-page
> Mysite.com/page/child-page/grandchild-pageApril 20, 2017 at 1:59 am #780238Hello.. any help?
April 20, 2017 at 5:52 am #780301Hey!
> What about being able to put child pages ie: grandchild ?
Every menus items in the ““What We Do”” menu are displaying properly. Which items are not showing? Please provide a screeshot.
Cheers!
IsmaelApril 21, 2017 at 3:31 am #780952I would like to use the “Page Sidebar navigation” tool
Screenshot of tool in Enfold Theme settings
https://s3.amazonaws.com/screenshots.screencast-o-matic.com/screenshot/u/mNG/1492737815212-13384.pngwhen I enable the tool only the top level “child” pages will show and not the “grandchild”.
The sidebar on the left top nav of “What we do” is currently showing you both the “Page Sidebar Navigation” which has 2 entries and the custom menu, which shows all the entries. As stated I do not want to use a custom menu for this anymore, I want to use “Page Sidebar Navigation” as long as it can show the full nest of pages including grandchild. I’m sure this is as simple as changing the “depth” varial somewhere in enfolds-functions.php ?
Here is a screenshot to further illustrate.
http://screencast-o-matic.com/screenshots/u/mNG/1492738069264-56491.png
April 21, 2017 at 7:47 am #781016Hey!
Did you actually set a page hierarchy? I would like to check this but when I try to access the site, I get redirected to the maintenance page.
// https://codex.wordpress.org/Pages#To_create_a_subpage
The “grandchild” pages are displaying in the page sidebar navigation on our installation.
Best regards,
IsmaelApril 21, 2017 at 10:20 pm #7814421) Yes the hierechy is setup.
2) The credentials were posted earlier in the thread, here the are again in private contentApril 21, 2017 at 10:34 pm #781452Please don’t forget this vital piece of info ..
http://screencast-o-matic.com/screenshots/u/mNG/1492738069264-56491.png
*in the screenshot you will see vital info that will keep you from going in this loop. You will see there are 2 menus in the sidebar this way you can see that indeed the hierarchy is configured correctly, and that the in page menu navigation does not show the grandchild.
It seems this post should have had a quick response, 3 days later you asking me for credentials again.
April 22, 2017 at 1:17 am #781491Here is the child menu code in enfold-functions.php, however I don’t see a depth variable
/*
* Display a subnavigation for pages that is automatically generated, so the users doesnt need to work with widgets
*/
if(!function_exists(‘avia_sidebar_menu’))
{
function avia_sidebar_menu($echo = true)
{
$sidebar_menu = “”;$subNav = avia_get_option(‘page_nesting_nav’);
$the_id = @get_the_ID();
$args = array();
global $post;if($subNav && $subNav != ‘disabled’ && !empty($the_id) && is_page())
{
$subNav = false;
$parent = $post->ID;
$sidebar_menu = “”;if (!empty($post->post_parent))
{
if(isset($post->ancestors)) $ancestors = $post->ancestors;
if(!isset($ancestors)) $ancestors = get_post_ancestors($post->ID);
$root = count($ancestors)-1;
$parent = $ancestors[$root];
}$args = array(‘title_li’=>”, ‘child_of’=>$parent, ‘echo’=>0, ‘sort_column’=>’menu_order, post_title’);
//enables user to change query args
$args = apply_filters(‘avia_sidebar_menu_args’, $args, $post);//hide or show child pages in menu – if the class is set to ‘widget_nav_hide_child’ the child pages will be hidden
$display_child_pages = apply_filters(‘avia_sidebar_menu_display_child’, ‘widget_nav_hide_child’, $args, $post);$children = wp_list_pages($args);
if ($children)
{
$default_sidebar = false;
$sidebar_menu .= “<nav class=’widget widget_nav_menu $display_child_pages’><ul class=’nested_nav’>”;
$sidebar_menu .= $children;
$sidebar_menu .= “</nav>”;
}
}$sidebar_menu = apply_filters(‘avf_sidebar_menu_filter’, $sidebar_menu, $args, $post);
if($echo == true) { echo $sidebar_menu; } else { return $sidebar_menu; }
}
}April 24, 2017 at 5:47 am #782145Hey!
I’m sorry but I can’t login to the site. I get redirected to the maintenance page when I try to access the dashboard.
Here is the child menu code in enfold-functions.php, however I don’t see a depth variable
The “child_of” parameter is set so it will display the sub pages of the parent or grand parent page. The “depth” parameter is set to default which is 0 (any pages).
Regards,
IsmaelApril 25, 2017 at 3:28 am #782616Are you not reading the posts I am putting up?
Are you purposely sending me in circles?
April 26, 2017 at 7:21 am #783274Hey!
It seems this post should have had a quick response, 3 days later you asking me for credentials again.
I didn’t ask for login credentials. I just get redirected to the maintenance page after logging in. Please review my response.
// https://kriesi.at/support/topic/page-sidebar-navigation-show-parent-child-grandchild/#post-781016
Are you purposely sending me in circles?
Again, I can’t login to the site properly until today. I’m not sure why I got redirected to the maintenance page before. Anyway, we added this filter in the functions.php file.
add_filter('avia_sidebar_menu_display_child', 'avia_sidebar_menu_display_child_mod', 10); function avia_sidebar_menu_display_child_mod($display) { $display = ''; return $display; }
It will display the child pages of the page sidebar navigation. ( see private field )
Regards,
IsmaelApril 28, 2017 at 12:51 am #784263Excellent.
I apologize for the frustration.Thanks for your support.
April 28, 2017 at 5:51 am #784287Hi,
Glad to hear that it’s fixed. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Page Sidebar navigation / Show parent + child + grandchild’ is closed to new replies.