• Resolved thisisrhun

    (@thisisrhun)


    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?

    • This topic was modified 5 years, 2 months ago by thisisrhun.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Truman

    (@tdorn)

    Hi there,

    Apologies for the late response on this, we are currently trying to work through some of our backlog of posts and tickets!

    Are you still facing this issue? We have release some updates that might have fixed this, but I wanted to check with you. Did you just code these widgets in? Is that what I’m seeing? Please let me know!

    Plugin Support Deblyn Prado

    (@deblynprado)

    Hi!

    I can see that this thread is inactive for a few weeks. Because of it we’re closing the topic.

    Please feel free to open another thread if you still any help from our team.

    Take care!

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

The topic ‘before_widget and after_widget not working’ is closed to new replies.