• Resolved Jorenm

    (@jorenm)


    How do I do this?

    Alternately, how do I spit out a widget without using the sidebar at all.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Widgets aren’t dependant upon <ul></ul> markup. Use register_sidebar to set up widgets that don’t use list markup.

    Thread Starter Jorenm

    (@jorenm)

    register_sidebar still wraps it in a UL. None of the parameters effect the outer UL.

    register_sidebar still wraps it in a UL

    No it doesn’t. It’s doesn’t even reference the enclosing element. That’s specified in the appropriate sidebar or widget-capable area.

    Thread Starter Jorenm

    (@jorenm)

    So how would I specify a sidebar which doesn’t contain a wrapper element?

    Something like:

    <div class="sidebar">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    <?php endif; ?>
    </div>

    should do it.

    Thread Starter Jorenm

    (@jorenm)

    Yep that works. Now I can’t remember what I was using instead that kept dumping out ULs. Oh well.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Remove wrapper UL from sidebar.’ is closed to new replies.