• Maybe it is a wordpress issue, dunno for real:
    I use this to create a custom widget

        register_sidebar(array(
            'name' => "Home",
            'id' => 'home',
            'description' => "Sidebar Home",
            'before_widget' => '<div class="content-widget test">',
            'after_widget' => '</div>',
    		'before_title' => '<h3 class="widget-title">',
        	'after_title' => '</h3>'
        ));

    But when checking html i got twice (repeated) the widget div wrapper like this:

    <div class="content-widget test">
          <div class="content-widget test">
             ...The sidebar content...

    I have used this for years with no problem Now I just figured out this. … it is a wordpress last version issue?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’ve got similar code on several sites running 4.9.8 but I don’t get that result.

    Thread Starter masterbip

    (@masterbip)

    Yeah, me too, that’s the weird thing… only in one site I got that. And nothing extra or external or … new … really dunno.

    this does not seem to happen with all widgets;

    how (using what code) do you call the sidebar, and which widgets are you using in it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicated ‘before_widget’ div’ is closed to new replies.