Widgets not adding div on before and after title

I think you missed , at the of after_title that’s why it’s not working. Use this code it’s working fine. register_sidebar( array( ‘name’ => ‘Custom code widget’, ‘id’ => ‘custom-code’, ‘description’ => ‘Cutom code for all pages.’, ‘before_widget’ => ‘<div class=”custom-description”>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<div class=”custom-code-title”><h2 class=”widget-title”>’, ‘after_title’ => ‘</h2></div>’, ) );

Customize WordPress widget – Product Category

Taking a look at the output rendered by the widget shows that the markup is missing a closing <a> tag for the term links and the widget instance does not have the closing </li>. Viewing the page source and formatting the output makes it easier to identify these issues: <li id=”mdk_wpcat_widget-2″ class=”widget-container mdk_wpcat_widget”> <h3 class=”widget-title”>Wooooo!</h3> … Read more

Text widget doesn’t save the content

you can try with this. Step 1: Go to Appearence –> Widgets Step 2: Then at the top right of the screen you should see a tab that says Screen Options. Click on that, then a link will appear in the top left of your screen that says ‘Enable Accessibility Mode’ and click on that … Read more