Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #5475

    I want to fix one sidebar menu for all the menus, how I do it?

    Practical example, at this page:

    I want to keep the links on the left to stay the same for all menus. Is this possible? If yes, how?

    To be more clear, at page I want to have the links on the left to be the same of the page

    Thanks in advance for your kind help.

    Best regards


    I just forgot to say that I want to have the main menus on top to stay as they are now.

    Thanks again!




    the sidebar menu is generated dynamically (based on the page id). You can hardcode the menu though – open up sidebar.php and search for following code:

    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0");
    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0");

    Replace it with:

    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=PAGEID&echo=0");

    and instead of PAGEID fill in the page id of this page:


    it works!!! thanks a lot!


    Glad that I could help you :)

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘how to fix sidebar menu’ is closed to new replies.