Support » Fixing WordPress » How to add and connect multiple widget ready sidebars

  • Hello everyone:

    I have been browsing at tutorials for a day and still unable to do what I would like with my blog. Maybe someone here can help.

    My site is at

    I have created 4 additional pages to the main page, and would like to call a unique sidebar for any of those pages or their child-pages. I would like these pages to also be widget ready so I can add content through them through the widget editor. I’ll try to breakdown what I need help with:

    1. I have successfully been able to add sidebars by adding this to the functions.php file:
    if ( function_exists(‘register_sidebars’) )

    This got the sidebars to show on the widgets page. However, you can only use one particular widget on any one sidebar. How can I remedy this?

    2. I then added the following code to my sidebar.php file:
    <ul class=”sidebar_list”>
    if (is_page(‘2’)) (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(2));
    elseif (is_page(‘connect’)) (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(3));
    elseif (is_page(‘media’)) (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(4));
    elseif (is_page(‘content’)) (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(5));
    else (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar());

    You’ll notice that I have tried using both “Page ID” #s and the ‘slugs’ but neither is working, even after adding text widgets as a test on some of the pages. The sidebar still stays as Sidebar1 (the main sidebar) no matter what page I’m on.

    What am I missing and how can I get each of these to have whatever widgets or content I want?


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to add and connect multiple widget ready sidebars’ is closed to new replies.