How do I remove the container div from menus appearing in a widget?
-
Using wordpress, how do I remove the container div from any menu the user chooses to display in a widget?
function al_widgets_init() { register_sidebar( array( 'name' => __(AL_THEMENAME . ' sidebar', AL_THEMESLUG), 'id' => 'sidebar', 'description' => __('Right Sidebar area', AL_THEMESLUG), //'before_widget' => '<li id="%1$s" class="widget-container %2$s">', //'after_widget' => '</li>', 'before_widget' => '', 'after_widget' => '', 'before_title' => '<h3 class="widget">', 'after_title' => '</h3>', 'container_div' => null ) ); } add_action( 'widgets_init', 'al_widgets_init' );`
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(AL_THEMENAME . ' Sidebar') ) : ?> <?php endif; ?>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How do I remove the container div from menus appearing in a widget?’ is closed to new replies.