Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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!

    #1361625

    Hey 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

    2022-08-13_012.jpg
    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

    which looks like this:
    2022-08-13_013.jpg

    Best regards,
    Mike

    #1361784

    Hi Mike

    This worked out great, thank you very much.

    Kind regards
    blende64

    #1361788

    Hi,
    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Contact form autoresponder markup broken’ is closed to new replies.