Paragraph Tags Being Added Between HTML
This guide applies to:
- Basic
- Professional
In this guide
Introduction
The Draw Attention plugin uses a WordPress function called wpautop, it automatically adds paragraph tags to help you format your content.
If you would like to have total control over the HTML in your more info or description fields, you can disable the wpautop filter.
Learn how to add PHP snippets to your website.
How to Disable wpautop
Disabling wpautop to stop getting paragraph tags from being added between your HTML tags in the description or more info fields.
One thing to keep in mind – this will automatically remove all of the extra paragraph tags from every more info field on every Draw Attention image.
function my_da_unautop() {
remove_filter( 'da_description', 'wpautop' );
}
add_action( 'template_redirect', 'my_da_unautop' );
Related Guides
-
JavaScript Error Displays or Flashes
-
Unable to Edit or Create
-
Hotspots Out of Place
-
Hidden Images Don’t Work