-
AuthorPosts
-
February 20, 2015 at 1:34 pm #399595
Hello,
Im wanting the sidebar to show the grandparent in the sidebar so that people dont have to go all the way to the top and go through the menus again.
I did find a link that hopefully showed me how to adjust this in the sidebar.php but it was from 2011 and the php looked completely different.
https://kriesi.at/support/topic/parent-sidebar-display/
Is there a way of adjusting the current sidebar.php to have it show the previous parent/ grandparent page??
February 21, 2015 at 11:07 am #400025Hey mecdesign!
Thank you for using Enfold.
Maybe the solution provided here will help: https://kriesi.at/support/topic/add-titles-to-sidebar-navigation/#post-384272
Best regards,
IsmaelFebruary 23, 2015 at 1:09 pm #400603Thanks Ismael,
I did try your short edit in the functions-enfold.php file but it didnt work.
The menus all just disappeared and the slider on the page also disappeared.February 24, 2015 at 12:58 pm #401356Hey!
You should apply the changes on Functions.php file and not functions-enfold.php file. Please undo the changes you made on the wrong file and apply on the correct one.
Regards,
YigitFebruary 24, 2015 at 1:29 pm #401383Hello Yigit,
I tried both now. On the link that Ismael posted their was an original change to the enfold-functions.php I tried that and then I have also tried the other later option in the standard functions.php page.
When I am in the child or grandchild i do not see the original parent category above it. It looks just the same as when I have no changes applied.
February 25, 2015 at 7:05 am #401871Hey!
Can you please provide a link to a child or granchild page? We would like to check it. A screenshot will help.
Best regards,
IsmaelFebruary 25, 2015 at 4:16 pm #402127This reply has been marked as private.February 26, 2015 at 9:59 am #402541Hi!
The solution provided on the previous post should work since you’re using the same nested navigation. Edit functions-enfold.php, find this code:
$default_sidebar = false; $sidebar_menu .= "<nav class='widget widget_nav_menu $display_child_pages'><ul class='nested_nav'>"; $sidebar_menu .= $children; $sidebar_menu .= "</ul></nav>";
Replace it with:
$default_sidebar = false; $parent = get_the_title($post->post_parent); $parentlink = get_the_permalink($post->post_parent); $sidebar_menu .= "<nav class='widget widget_nav_menu $display_child_pages'><ul class='nested_nav'>"; $sidebar_menu .= "<a href='{$parentlink}'>$parent</a>"; $sidebar_menu .= $children; $sidebar_menu .= "</ul></nav>";
Best regards,
IsmaelFebruary 26, 2015 at 10:59 am #402566Hello Ismael,
thanks for your time once again. Not sure what has changed now but instead of it just deleting the menu and affecting the slider like before when I tried it it has bombed out the site like the second option. The website and backend just goes blank and I have to copy over the original functions-enfold.php to reset it again??
February 27, 2015 at 7:25 am #403214Hey!
Maybe the apostrophe signs are being converted automatically when you copy the code. Get the code here: http://pastebin.com/YGPZrauc
Best regards,
IsmaelMarch 9, 2015 at 2:38 pm #408106I tried this but still it didnt work.
I did think that perhaps it was because the $ sign was missing from the beginning of the text but that didn’t help either?
thanks Daren
March 10, 2015 at 8:34 am #408659Hi!
Alright. Please post the login details here. We would like to check it.
Best regards,
IsmaelMarch 11, 2015 at 5:33 pm #409982This reply has been marked as private.March 14, 2015 at 7:50 am #411423 -
AuthorPosts
- You must be logged in to reply to this topic.