• Resolved shirayukikitsune

    (@shirayukikitsune)


    There is a problem with the generated HTML using the Bannerize Pro as a widget: the ‘before_widget’ and ‘after_widget’ arguments of the register_sidebar are printed twice.

    For example:

    register_sidebar([
            'name'          => 'Right sidebar',
            'id'            => 'right-sidebar',
            'description'   => '',
            'before_widget' => '<aside id="%1$s" class="col-md-12 %2$s">',
            'after_widget'  => '</aside>',
            'before_title'  => '<h2 class="widget-title">',
            'after_title'   => '</h2>'
    ]);

    Prints the following HTML:

    <aside id="wp-bannerize-widget-2" class="col-md-12 widget_wp-bannerize-widget">
    <aside id="wp-bannerize-widget-2" class="col-md-12 widget_wp-bannerize-widget">
    <h2 class="widget-title">Title</h2>
    <!-- banners .... -->
    </aside>
    </aside>

    Removing the additional echos in resources/views/widgets/index.php solves the issue. Could you fix that in the codebase?

    Thanks in advance.

The topic ‘Bug with Widget’ is closed to new replies.