• Resolved Georgi Dyulgerov

    (@webtech11)


    Hello,

    I’ve updated the plugin to the latest version, but when I preview or send the email template wordpress still automatically adds <p></p> tags for new lines, which break the template design.

    How can I fix this. In the documentation writes that this issue is fixed in the latest version, but it’s not.

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Contributor Mansi

    (@mansi-shah)

    @webtech11 ,

    Can you let me know which version of WordPress you are using as of now?

    Adding, WordPress will automatically insert <p> and </p> tags which separate content breaks. If you want or need to remove these, you can use either of the following code snippets.

    1. To completely disable the wpautop filter, you can use:

    remove_filter('the_content', 'wpautop');

    2. If you still want this to function try adding a later priority value to your filter something like:

    add_filter('the_content', 'removeEmptyParagraphs',99999);

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress still ads tags to emails’ is closed to new replies.