Support » Plugins » Automattic’s widget plugin doesn’t change the appearance of my sidebar

  • Resolved Z_Everson


    I installed Automattic’s sidebar widget plugin. I drag the available widgets I want to the sidebar and save my changes. But when I look at my website, my sidebar shows no changes.

    My theme is bla. 1.0 by Steffen Becker. So, as I’m not using Kubrick, I manually added the code to my sidebar. Automattic instructions say to add the code to the sidebar underneath the line

    <div id=”sidebar”>

    The code in my sidebar, however, is different: it’s

    <div id=”n_container”>

    In Automattic’s code, I changed both occurrences of “sidebar” to “container” with no visible effect. I then changed them back and switched “Container” to “Sidebar” in my theme’s code, which moved the sidebar to leftside and cut off some of the main index.

    Any suggestions?

Viewing 5 replies - 1 through 5 (of 5 total)
  • A few minutes ago you posted it works:

    So, now what?

    You have to place the dynamic sidebar code from the widget sidebar.php into the appropriate places in your own sidebar code. Which I have to say is not as simple as it sounds, since sidebar code can vary enormously.

    The widgets plugin comes with sidebar.php files for both the classic and default themes. Perhaps the classic sidebar would mesh better with yours?

    So basically you have to put this in just inside the opening ul tag:

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>

    and this in just before the closing ul tag:

    <?php endif; ?>.

    And that’s a real simplistic stating of the potential complexities.

    If it were me, I’d opt to start with the default sidebar, and plug in the changes you have in the sidebar you’ve tweaked.

    @moshu: Different problem–that thread was about getting the Sidebar Widgets panel to appear under the Presentation Menu. vkaryl’s post solved that problem, although I probably should have taken the installation one step further before declaring my widgets working.

    @vkaryl: Thanks (glad I hit refresh before replying to see if you changed your post). I switched out the default theme’s functions.php file for the classic one and also added the code you suggested. That worked! Thanks again!

    And again, you’re welcome. Murphy’s Law y’know – nothing is EVER as simple as it sounds!

    [I had to go look up the “pertinent parts”, why I edited the post later….]

    Ha! I knew it wouldn’t be simple–I spent about 15 minutes pondering if it was too late to start something new and if I’d be beffer off watching a movie.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Automattic’s widget plugin doesn’t change the appearance of my sidebar’ is closed to new replies.