Documentation

Paragraph Tags Being Added Between HTML

What’s Happening?

The DrawAttention 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.

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.

Add this code the functions.php file of the website theme.

function my_da_unautop() {
	remove_filter( 'da_description', 'wpautop' );
}
add_action( 'template_redirect', 'my_da_unautop' );

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.