WordPress.org

Forums

[resolved] Automattic's widget plugin doesn't change the appearance of my sidebar (6 posts)

  1. Z_Everson
    Member
    Posted 8 years ago #

    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?

  2. moshu
    Member
    Posted 8 years ago #

    A few minutes ago you posted it works:
    http://wordpress.org/support/topic/85826?replies=4

    So, now what?

  3. vkaryl
    Member
    Posted 8 years ago #

    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.

  4. Z_Everson
    Member
    Posted 8 years ago #

    @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!

  5. vkaryl
    Member
    Posted 8 years ago #

    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....]

  6. Z_Everson
    Member
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic