-
AuthorPosts
-
August 10, 2022 at 4:56 pm #1361367
Hello
I am entering the following in the autoresponder text on the contact form:
Guten Tag Vielen Dank für Ihre Nachricht. Gerne werden wir Sie in den nächsten Tagen persönlich kontaktieren. Freundliche Grüsse xyz
The email that the visitor receives, has the following markup:
Guten Tag</p><br /> <p>Vielen Dank für Ihre Nachricht.<br /><br /> Gerne werden wir Sie in den nächsten Tagen persönlich kontaktieren.</p><br /> <p>Freundliche Grüsse</p><br /> <p>xyz
Somehow the markup seems to get mixed up when saving. This causes different spacing between paragraphs in the email to the visitor.
In the shortcode_handler in the contact.php file, $atts[‘autorespond’] has the following value:
Guten Tag</p>\n<p>Vielen Dank für Ihre Nachricht.<br />\nGerne werden wir Sie in den nächsten Tagen persönlich kontaktieren.</p>\n<p>Freundliche Grüsse</p>\n<p>xyz
I have already reentered the text and also tried to define all breaks directly with HTML code – unfortunately unsuccessful so far. Also deactivating all plugins did not bring any change.
We could find the problem with Enfold 5.1.1 under WP 6.0.1 as well as with Enfold 4.7.6.3 under WP 6.0.1.
Do you have a tip for me? Many thanks!
August 13, 2022 at 10:26 pm #1361625Hey Jeannette,
Thanks for your patience, please try adding your autoresponder text with no manual [Enter] key line breaks, instead use \n like this:Guten Tag \n\nVielen Dank für Ihre Nachricht. \nGerne werden wir Sie in den nächsten Tagen persönlich kontaktieren. \n\nFreundliche Grüsse \n\nxyz
I tested this and the result was as you had requested, this is the raw html from the email:Guten Tag <br /> <br /> Vielen Dank für Ihre Nachricht. <br /> Gerne werden wir Sie in den nächsten Tagen persönlich kontaktieren. <br /> <br /> Freundliche Grüsse <br /> <br /> xyz
Best regards,
MikeAugust 16, 2022 at 11:05 am #1361784Hi Mike
This worked out great, thank you very much.
Kind regards
blende64August 16, 2022 at 12:08 pm #1361788Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Contact form autoresponder markup broken’ is closed to new replies.