WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Widgets Plugin, Pages and Links list problem (5 posts)

  1. VMPR
    Member
    Posted 8 years ago #

    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?

  2. Yngwin
    Member
    Posted 8 years ago #

    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.

  3. VMPR
    Member
    Posted 8 years ago #

    will check that, thanks!

  4. VMPR
    Member
    Posted 8 years ago #

    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?

  5. VMPR
    Member
    Posted 8 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Topic