Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #201229

    Hello!

    http://www.adw.cl/contact/

    I have a contact form that sends email with the subject ‘Thank you for your Message!’ instead of ‘Gracias por tu mensaje!’ that is how I configured at the Contact form in the option:

    E-Mail Subject
    You can define a custom Email Subject for your form here. If left empty the subject will be
    New Message (sent by contact form at Amantes del Whisky)

    Looks like a bug.

    Only thing in addition to coment is that I have installed the easy-wp-smtp plugin, that allows to erase mi domain as a spam (but doesn’t have a Subject to customize)

    Thanks a lot!!

    José

    #201848

    Hi,

    Can you create an administrator account and post it here as a private reply?

    Regards,
    Josue

    #202708
    This reply has been marked as private.
    #203245

    Hi!

    The subject field (and email subject) seems to work for me with the contact form here: http://www.adw.cl/contact/ . Note that by default it will only work if you use the label “Subject” for the field. If you use a different label for the subject field the theme will not recognize it as subject field automatically. If you want to use a different subject label add following code to functions.php

    
    add_filter('avf_form_subject','avia_change_form_subject', 10, 3);
    function avia_change_form_subject($subject, $new_post, $form_params){
    $key = "XXX";
    $key = avia_backend_safe_string($key, '_', true);
    if(!empty($new_post[$key. '_1'])) $subject = $new_post[$key . '_1']
        return $subject;
    }
    

    and instead of XXX insert the text of your subject label.

    Cheers!
    Peter

    #203257

    Perfect, thanks a lot!
    Regards
    José

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Subject in Contact Form not custom’ is closed to new replies.