Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #645504

    Here is a link to a screenshot of a sub-sub page on my current development site: http://www.awesomescreenshot.com/image/1314896/024a7bc1bfd76b20b0f0bdc979ed3b39

    You will see that the Menu Items Bar Grinding & Blanchard Grinding are sub pages of Grinding Services and Grinding Services is a Sub page of Capabilities (Along with Ground Bar Stock & Raw Material & Parts Manufacturing).

    I am looking to only display the menu items (direct parent and direct child pages) that have arrows next to them in the sidebar. Is there a way to update the functions.php file to do this (using a child theme)?

    Thanks!

    #646856

    Hey!

    Try adding this code to the Quick CSS:

    ul.nested_nav li {
        display: none;
    }
    
    ul.nested_nav li.current_page_item{
        display: block;
    }

    Cheers! 
    Josue

    #646959

    That just removes all of the sidebar navigation. There is no way to do this with CSS. There needs to be a function for this. Please re-read my first post and see my screenshot to properly understand. Thank you.

    #647976

    I did not want to bump this but it seems to not be in rotation compared to other topics you have commented to that came up after my last submission.

    #648006

    Hey!

    I am afraid such function would not be easily possible for us to provide you but can you please elaborate on the changes you would like to make? We may find a workaround.

    Best regards,
    Yigit

    #648011

    Basically based on my screenshot (and private link now) provided I would like the side bar that is pulling the parent pages/subpages currently to only show the direct parent page title and it’s children. For instance in my examples Bar Grinding (the page) is a sub page of Grinding Services. Grinding Services is a sub page of Capabilities. So the Path right now is: Capabilities –> Grinding Services –> Bar Grinding. We would only want Grinding Services and the children pages of that to show.

    #649181

    Hi,

    Here you go:

    ul.nested_nav > li {
        display: none;
    }
    
    ul.nested_nav li.current_page_ancestor {
        display: block;
    }
    

    Best regards,
    Josue

    #649182

    Thanks! Looks like that worked.

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Sidebar subpage nesting’ is closed to new replies.