[Support request] Remove Break from Text Widget Heading

Home Forums Support [Support request] Remove Break from Text Widget Heading

Home Forums Support Remove Break from Text Widget Heading

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #361359
    Vinai

    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

    #361365
    Leo
    Staff
    Customer Support

    Hi there,

    Can you try that in Code Snippets?
    https://docs.generatepress.com/article/adding-php/#code-snippets

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.