Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
3. Check FAQ on Themeforest.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration.

NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.
Contact form, adding phone no.
  • I want to add the possibility to enter a phone no. to the contact form. Is this possible, if so, how to get it working?

    Thank you very much for your help!

    Best regards,

    Bet
  • 10 Comments sorted by
  • Why is it not possible?

    I've added it already to template-contact.php, Looks good. Only thing needed is to add $phone the right way in theme-mail.php, so the phone nr. will appear in the email of receiver. I think it has to be in this line, but I don't know how to do it.

    $headers = 'From: '. $name .' <'. $email .'>';

    Your help would be appreciated

    Regards,

    Bet
  • Thank you a lot!

    However, I'm doing something wrong, it's not working.

     I'm sorry to trouble you, but can I send you my template-contact.php en theme-mail.php so that you can take a look?

    Regards,

    Bet


  • I very much appreciate your help! The site runs on a test server at the moment, as soon as it's online I will send you access details.

    regards,

    Bet
  • Goodmorning!

    this site, www.dgpi.nl,  is online now, I would appreciate it very much if you can take a look at the contactform. (I add a field for phonenr. but it's not working)

    Can we send you the log-in by email please?

    Regards,

    Bet
  • heres myy theme mail settings below please tell me whats wrong? i added an extra line one with telepone one without the extra line still dosnt work

    <?php
    /**
     * Contact form mail functions.
     *
     * @package Doover
     * @author Muffin group
     */

    $to = htmlspecialchars( stripslashes( trim( $_POST['To'] ) ) );
    $name = htmlspecialchars( stripslashes( trim( $_POST['Name'] ) ) );
    $email = htmlspecialchars( stripslashes( trim( $_POST['Email'] ) ) );
    $telephone = htmlspecialchars( stripslashes( trim( $_POST['telephone'] ) ) );
    $message = htmlspecialchars( stripslashes( trim( $_POST['Message'] ) ) );
    $subject = htmlspecialchars( stripslashes( trim( $_POST['Subject'] ) ) );

    $headers = 'From: '. $name .' <'. $email .'>';
    $subject .= ', from: ' .$name. ', telephone: '.$telephone ;
    $subject .= ', from: ' .$name. ', telephone: '.$_POST['telephone'] ;
    if( @mail( $to, $subject, $message, $headers ) ){
    echo json_encode( array(
    'status' => 'ok'
    ));  
    } else {
    echo json_encode( array(
    'status' => 'error'
    ));  
    }

    ?>
  • Please sign in to see answear!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Multilingual WordPress Limuso Premium Wordpress Theme Kora Premium Wordpress Theme Bretheon Premium Wordpress Theme Tisson Premium Wordpress Theme Caffeine Responsive Wordpress Theme Pindol Premium Wordpress Theme Nollie Premium Wordpress Theme Almet - Responsive Multi-Purpose Theme