-
AuthorPosts
-
June 9, 2016 at 3:57 pm #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!
June 12, 2016 at 11:48 am #646856Hey!
Try adding this code to the Quick CSS:
ul.nested_nav li { display: none; } ul.nested_nav li.current_page_item{ display: block; }
Cheers!
JosueJune 12, 2016 at 5:15 pm #646959That 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.
June 14, 2016 at 1:46 pm #647976I 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.
June 14, 2016 at 2:18 pm #648006Hey!
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,
YigitJune 14, 2016 at 2:24 pm #648011Basically 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.
June 16, 2016 at 1:12 pm #649181Hi,
Here you go:
ul.nested_nav > li { display: none; } ul.nested_nav li.current_page_ancestor { display: block; }
Best regards,
JosueJune 16, 2016 at 1:16 pm #649182Thanks! Looks like that worked.
-
AuthorPosts
- The topic ‘Sidebar subpage nesting’ is closed to new replies.