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

    #400025

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

    #400603

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

    #401356

    Hey!

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

    #401383

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

    #401871

    Hey!

    Can you please provide a link to a child or granchild page? We would like to check it. A screenshot will help.

    Best regards,
    Ismael

    #402127
    This reply has been marked as private.
    #402541

    Hi!

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

    #402566

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

    #403214

    Hey!

    Maybe the apostrophe signs are being converted automatically when you copy the code. Get the code here: http://pastebin.com/YGPZrauc

    Best regards,
    Ismael

    #408106

    I 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

    #408659

    Hi!

    Alright. Please post the login details here. We would like to check it.

    Best regards,
    Ismael

    #409982
    This reply has been marked as private.
    #411423

    Hi!

    It’s not working because you don’t have the latest version of WordPress. Please upgrade WordPress 4.1.1 then download the latest version of the theme, version 3.1.

    Regards,
    Ismael

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.