Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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 Link

    #779109

    Hey 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 Torvik

    #779157

    Hi 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 ?

    #779159

    PS. you link was not relevant .. perhaps typo?

    #779731

    Hi there, did login work for you?

    #779802

    Hi,

    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,
    Ismael

    #779847

    Hey that was really useful.. thanks!

    > What about being able to put child pages ie: grandchild ?

    #780211

    Hello 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-page

    #780238

    Hello.. any help?

    #780301

    Hey!

    > 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!
    Ismael

    #780952

    I 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.png

    when 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

    #781016

    Hey!

    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,
    Ismael

    #781442

    1) Yes the hierechy is setup.
    2) The credentials were posted earlier in the thread, here the are again in private content

    #781452

    Please 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.

    #781491

    Here 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; }
    }
    }

    #782145

    Hey!

    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,
    Ismael

    #782616

    Are you not reading the posts I am putting up?

    Are you purposely sending me in circles?

    #783274

    Hey!

    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,
    Ismael

    #784263

    Excellent.
    I apologize for the frustration.

    Thanks for your support.

    #784287

    Hi,

    Glad to hear that it’s fixed. Thanks for using Enfold :)

    Best regards,
    Nikko

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Page Sidebar navigation / Show parent + child + grandchild’ is closed to new replies.