Support » Plugins and Hacks » Widgets Plugin, Pages and Links list problem

  • Resolved VMPR

    (@vmpr)


    I have to problems with the new Widgets-Plugin, both concerning the list styles. My “Pages” and “Links” seem to have sort of another UL Tag around them. I had a look at the widgets.php file but couldn’t find anything that would help.

    See the 2nd column: http://www.sosuechtig.de/
    Since the theme is german, look at “Seiten” and “Freunde”.

    This is how my sidebars are implemented:
    <div id="sidebar">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
    <h2>Sidebar Plugin</h2>
    Dieses Theme benutzt das Plugin <strong>Sidebar Widgets</strong>, bitte aktivieren
    <?php endif; ?>
    </div>

    My functions.php looks like this:
    <?php
    if ( function_exists('register_sidebars') )

    register_sidebars(2, array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    ));
    ?>

    I didn’t remove the h2 tag here, because I use that one for the headlines 🙂

    Maybe someone can help?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yngwin

    (@yngwin)

    That’s because those widgets are not set up very flexibly, and follow the default WP way of sidebar blocks as list items.

    Look at the way I override the default widgets in the functions.php of my OutThere theme, that should help you out.

    VMPR

    (@vmpr)

    will check that, thanks!

    VMPR

    (@vmpr)

    That was almost perfect. Had to change some minor things, but well, it’s great! Only one thing left: All widgets appear in my first sidebar! They are set up correctly, so it must be something in your functions.php.

    I modified the first lines, so it SHOULD work, but it doesn’t…
    if ( function_exists('register_sidebars') )

    register_sidebars(2, array(
    'before_widget' => '<div id="%1$s" class="widget %2$s">',
    'after_widget' => '</div>',
    ));

    You got a hint?

    VMPR

    (@vmpr)

    ok, solved… it was a problem with before_widget and aftrer_widget. Leaving them blank solves the problem, even if it’s a little dirty 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widgets Plugin, Pages and Links list problem’ is closed to new replies.