Having a problem with dynamic sidebars & sidebar drop-down list in Widgets page!
-
Hi everyone,
I’m using a theme that originally was 3-column. I modified it to make it 2-column: main content and a right sidebar. I deleted the file for the left sidebar (l_sidebar.php).
Now whenever I go to the Widgets page, it shows two sidebars in the drop-down list. I must select Sidebar 2 (which is my right sidebar) and click show in order to see the widgets in my only sidebar. I wanted to fix this mess, so I tried the following:
1) went to functions.php and modified
register_sidebars(2);
to
register_sidebars(1);
I went into my right sidebar file (r_sidebar.php) and changed this:
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(<strong>2</strong>) ) : else : ?>
to
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(<strong>1</strong>) ) : else : ?>
But this change has actually prevented the widgets from displaying on the website. Only the static content in r_sidebar.php would display…
Thanks for your help,
- The topic ‘Having a problem with dynamic sidebars & sidebar drop-down list in Widgets page!’ is closed to new replies.