Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • #6913

    Hey Guys

    Wanted to change the sections for the contact form and figured out how to do that, but now my emails are not being sent and when you fill out the form and click submit, the message “your message has been sent successfully” doesn’t show up. Please any help would be great!


    Oh by the way…here is my link




    What code did you change?


    Can I send you my login so you can check it out? I’m not great with coding stuff


    this is the section that I tried to update and when I did it knocked out the message sending to my email


    * The Contact form gets generated by the avia_form class located in framework/php/class-form-generator.php


    $form_args = array(

    “heading” => “<h3>”.__(‘Send us a message’,’avia_framework’).”</h3>”,

    “success” => “<h3>”.__(‘Your message has been sent!’,’avia_framework’).”</h3><p>”.__(‘Thank you!’,’avia_framework’).”</p>”,

    “submit” => __(‘Send’,’avia_framework’),

    “action” => get_permalink()


    $elements = array(

    ‘yourname’ => array(‘type’=>’text’, ‘label’=>__(‘Name’,’avia_framework’), ‘check’=>’is_empty’), //user name

    ‘email’ => array(‘type’=>’text’, ‘label’=>__(‘E-Mail’,’avia_framework’), ‘check’=>’is_email’), //user email

    ‘phone #’ => array(‘type’=>’text’, ‘label’=>__(‘Phone Number’,’avia_framework’), ‘check’=>’is_empty’), //user phone

    ‘subject’ => array(‘type’=>’text’, ‘label’=>__(‘Subject’,’avia_framework’), ‘check’=>’is_empty’), //subject

    ‘message’ => array(‘type’=>’textarea’,’label’=>__(‘Message’,’avia_framework’), ‘check’=>’is_empty’), //message

    ‘myemail’ => array(‘type’=>’hidden’, ‘label’=>”, ‘check’=>”, ‘value’=> avia_get_option(‘email’) ), //email adress the form should be sent to

    ‘myblogname’=> array(‘type’=>’hidden’, ‘label’=>”, ‘check’=>”, ‘value’=> get_option(‘blogname’) ), //name of the website, gets added to the subject line

    ‘username’ => array(‘type’=>’decoy’, ‘label’=>”, ‘check’=>’must_empty’), //decoy input field for bots, input field gets hidden, if bot enters value form wont be submitted


    $contact_form = new avia_form($form_args);






    you stated you changed some code, can you tell us what exactly you changed? It’s hard for us to go and look for what you did.. we’re not responsible for your own customisations so we can’t help unless you tell us what you did.


    ‘phone #’ => array(‘type’=>’text’, ‘label’=>__(‘Phone Number’,’avia_framework’), ‘check’=>’is_empty’), //user phone

    this was the only code i changed. it did say website and i changed it to phone number. all i wanted to do was to change that one title and for some reason now the form is not sending to my email and it is not giving me the success that my form had been sent.


    Instead of:

    'phone #' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phone


    'phonenumber' => array('type'=>'text', 'label'=>__('Phone Number','avia_framework'), 'check'=>'is_empty'), //user phone


    works perfectly dude…thanks so much for your help!


    Glad that I could help you :)

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Contact Form’ is closed to new replies.