Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1084314

    Hi!

    can I somehow exclude the cookie consent answer in the email?

    Cheers,

    Philip

    #1084400

    Hey Smu88,

    Add the following to quick css:

    div.avia-cookie-consent {display:none !important;}

    If that doesn’t work please provide a link to your contact form you’re speaking of.

    Best regards,
    Jordan Shannon

    #1084404

    Hi!

    sorry I think you misunderstood me… I don’t want to hide it from the form, I want to hide it in the email which is sent to me when someone sends me a message through the contact form. Then I get an email like this:

    Name: Philip Steyrer
    E-Mail: (Email address hidden if logged out)
    Betreff: Das ist der Betreff

    Nachricht: Test

    ———->>>>>>Ich stimme der Speicherung meiner Daten zur weiteren Verarbeitung, gemäß der Datenschutzerklärung, zu.: true <<<<———–
    I don’t want the last line in the email(I marked it with arrows).

    Thank you!

    #1085195

    Hi,

    Thanks for the update.

    Is that the exact text in the message? Try to use this filter in the functions.php file.

    function avf_form_message_mod($message) {
        $excludes = array( "Ich stimme der Speicherung meiner Daten zur weiteren Verarbeitung, gemäß der Datenschutzerklärung, zu.: true", "Remove this" );
        foreach( $excludes as $remove ) {
            $message = str_replace( $remove, '', $message );
        }
    
        return $message;
    }
    add_filter('avf_form_message', 'avf_form_message_mod', 10, 1);
    

    That should remove the text.

    Best regards,
    Ismael

    #1086629

    Hi!

    nope doesn’t work… the sentence is still in the mail…

    Greetings,

    Philip

    #1088085

    Hi,

    Could you post the exact text from the email? Please post it on pastebin.com. Or try to replace the filter with the following code.

    function avf_form_message_mod_remove_texts($message) {
        $excludes = array( "Ich stimme der Speicherung meiner Daten zur weiteren Verarbeitung", "der Datenschutzerklärung, zu.: true", ", gemäß der", "zu.: true", "der Datenschutzerklärung, zu" );
        foreach( $excludes as $remove ) {
            $message = str_replace( $remove, '', $message );
        }
    
        return $message;
    }
    add_filter('avf_form_message', 'avf_form_message_mod_remove_texts', 10, 1);
    

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.