After upgrading to WordPress 4.8 or 4.8.1, the Text widget on the Right Sidebar is now showing an extra break after the heading.
Source Code Generated:
`<aside id=”text-2″ class=”widget inner-padding widget_text”><h4 class=”widget-title”>Register Now</h4>
<br />’
As you can see, a <br /> is generated at the end.
I searched the internet, and some people recommended to add this in WordPress.
remove_filter(‘widget_text_content’, ‘wpautop’);
remove_filter(‘the_content’, ‘wpautop’);
Could you recommend in which hook should I add this. Or is there a specific place to add these.
Thanks,
Vinai