Site logo

Archived topic

Remove Break from Text Widget Heading

1 reply · Started by Vinai on August 7, 2017

Viewing posts 1–2 of 2

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

This archived topic is closed to new replies.