 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
March 28, 2019 at 11:05 pm #1084314Hi! can I somehow exclude the cookie consent answer in the email? Cheers, Philip March 29, 2019 at 3:08 am #1084400Hey 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 ShannonMarch 29, 2019 at 3:11 am #1084404Hi! 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 BetreffNachricht: 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! March 31, 2019 at 10:44 pm #1085195Hi, 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, 
 IsmaelApril 3, 2019 at 5:24 pm #1086629Hi! nope doesn’t work… the sentence is still in the mail… Greetings, Philip April 8, 2019 at 2:33 am #1088085Hi, 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
- 
		AuthorPosts
- You must be logged in to reply to this topic.
