before_widget and after_widget not working
-
Hi, I noticed that after some time working well, the events list widget has stopped adding the before_widget and after_widget, which are set like this, when all the other widgets I have in the sidebar do it well. Here’s my code:
// Define Sidebar Widget Area register_sidebar(array( 'name' => __('Sidebar Widget Area', 'srst'), 'description' => __('Sidebar widgets.', 'srst'), 'id' => 'sidebar-widget-area', 'before_widget' => '<section id="%1$s" class="%2$s whitebox"><div class="contwrap">', 'after_widget' => '</div></section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ));And here’s the output with 3 widgets:
<div class="sidebar-widget"> <!-- Widget 1 --> <section id="categories-6" class="widget_categories whitebox"> <div class="contwrap"> <div class="some_random_widget">...</div> </div> </section> <!-- Widget 2, Tribe Events List --> <div class="tribe-compatibility-container">...</div> <!-- Widget 3 --> <section id="custom_html-3" class="widget_text widget_custom_html whitebox"> <div class="widget_text contwrap"> <div class="textwidget custom-html-widget">...</div> </div> </section> </div>Maybe there’s something I am doing wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘before_widget and after_widget not working’ is closed to new replies.