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

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

    Practical example, at this page: http://biobrisk.ch/bio-screening/

    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 http://biobrisk.ch/bio-screening-animali/ I want to have the links on the left to be the same of the page http://biobrisk.ch/bio-screening/

    Thanks in advance for your kind help.

    Best regards

    #50445

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

    Thanks again!

    :)

    #50446

    Hey,

    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:

    if($post->post_parent)
    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0");
    else
    $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: http://biobrisk.ch/bio-screening/

    #50447

    it works!!! thanks a lot!

    #50448

    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.