• Resolved refulez

    (@refulez)


    i have a theme for a older version of wordpress and i added a 2nd sidebar and it shows by default li and ul for the widgets how do i remove the li ul before the widgets

    code looks like this

    <div id="sidebar2">
    <li id="tag_cloud-2" class="widget widget_tag_cloud">
    <h2 class="widgettitle">Tags</h2>
    <div>....the tag links</div>
    </li>
    </div>
Viewing 4 replies - 1 through 4 (of 4 total)
  • http://codex.wordpress.org/Function_Reference/register_sidebar

    you can set what you want appear berore and after widgets

    Thread Starter refulez

    (@refulez)

    <?php
    if ( function_exists('register_sidebar') )
        register_sidebar(array(
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));
        register_sidebar(custom,array(
            'name' => 'custom',
            'before_widget' => '<div id="%1$s" class="widget %2$s">',
            'after_widget' => '</div>',
            'before_title' => '<h2>',
            'after_title' => '</h2>',
        ));
    ?>

    i already have that in place but it’s not working on the first sidebar it works but on the second it’s not working

    register_sidebar(custom,array(
    looks a bit odd; try
    register_sidebar(array(

    Thread Starter refulez

    (@refulez)

    i don’t why i din’t try that
    but it worked thanks a milion

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘li ul in the sidebar problem’ is closed to new replies.