-
AuthorPosts
-
December 1, 2014 at 2:07 pm #360756
Hi, through update WordPress there is a problem wie subject on contact form.
The custom Email subject is not shown when adding a new contact form. on old contact form everything works fine.
Enfold: (3.0.4)
Wordpress: 4.0.1December 1, 2014 at 8:27 pm #361003Hi lewebat!
Can you please post the link to your page where you have your contact form?
Cheers!
YigitDecember 2, 2014 at 1:08 pm #361412This reply has been marked as private.December 3, 2014 at 3:33 pm #362132Hey!
Do you mind creating a temporary admin login and posting it here privately so we can look into it?
Cheers!
YigitDecember 4, 2014 at 10:06 am #362753This reply has been marked as private.December 5, 2014 at 5:52 am #363425Hey!
I checked the site and added a new contact form. The E-Mail Subject field is still there, right after Message Sent Label field.
Cheers!
IsmaelDecember 5, 2014 at 9:43 am #363470This reply has been marked as private.December 6, 2014 at 6:04 pm #364112Hi!
I am not sure if I understand fully what you mean. I just tried to send a testmail and it worked fine.
Do you mean if you get the emails from contact form the subject is not shown at all? Can you show a screenshot of the issue please?Regards,
AndyDecember 9, 2014 at 2:50 pm #365341This reply has been marked as private.December 10, 2014 at 9:31 pm #366247Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_filter('avf_form_subject','avia_change_mail_subject', 10, 3); function avia_change_mail_subject($subject, $new_post, $form_params) { $subject = 'New message sent by CAREER form'; return $subject; }
Cheers!
JosueDecember 11, 2014 at 7:19 am #366523We have more than one contact form, so this will not solve the problem. i dont understand why this is not working. everytime i use enfold its working a 100%. is there no other fix for that?
December 12, 2014 at 2:36 am #367111Hey!
When a subject field (named “subject”) is present on the form it will take priority over the form parameter, try adding the following to child theme / theme functions.php:
add_filter('avf_form_subject','avia_change_mail_subject', 10, 3); function avia_change_mail_subject($subject, $new_post, $form_params) { $subject = $form_params['subject']; return $subject; }
If that doesn’t work open /enfold/framework/php/class-form-generator.php and look for line 619:
$subject = empty($new_post['subject_'.$this->formID]) ? __("New Message", 'avia_framework') . " (".__('sent by contact form at','avia_framework')." ".$myblogname.")" : $new_post['subject_'.$this->formID];
Replace it by:
$subject = empty($new_post['subject_'.$this->formID]) ? __("New Message", 'avia_framework') . " (".__('sent by contact form at','avia_framework')." ".$myblogname.")" : $this->form_params['subject'];
Regards,
Josue- This reply was modified 9 years, 11 months ago by Josue.
-
AuthorPosts
- You must be logged in to reply to this topic.