Forums

Having a problem with dynamic sidebars & sidebar drop-down list in Widgets page! (2 posts)

  1. M.K.
    Member
    Posted 3 years ago #

    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,

  2. M.K.
    Member
    Posted 3 years ago #

    I just wanna say that this has been the most useless forums I've ever used.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.