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

    #361003

    Hi lewebat!

    Can you please post the link to your page where you have your contact form?

    Cheers!
    Yigit

    #361412
    This reply has been marked as private.
    #362132

    Hey!

    Do you mind creating a temporary admin login and posting it here privately so we can look into it?

    Cheers!
    Yigit

    #362753
    This reply has been marked as private.
    #363425

    Hey!

    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!
    Ismael

    #363470
    This reply has been marked as private.
    #364112

    Hi!

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

    #365341
    This reply has been marked as private.
    #366247

    Hey!

    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!
    Josue

    #366523

    We 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?

    #367111

    Hey!

    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.
Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.