WordPress.org

Support

Support » How-To and Troubleshooting » register_sidebar ignoring before_widget & after_widget

register_sidebar ignoring before_widget & after_widget

  • I have the following code in my functions.php file, however when the widget is rendered it is still using the li tag, not a div.

    register_sidebar(array(
    	    'name' => __('Footer Left'),
    	    'id' => 'footersection-left',
    		'class' => 'footersection',
    		'before-widget' => '<div id="%1$s" class="widget %2$s">',
    		'after-widget' => '</div>',
    		'before_title' => '<h3>',
    		'after_title' => '</h3>'
    	));

    WP version is 3.4.2…….any ideas why this is happening?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘register_sidebar ignoring before_widget & after_widget’ is closed to new replies.
Skip to toolbar