More Contact fields

Discussion in 'Figero WordPress Theme' started by axel, Jun 12, 2013.

  1. axel

    axel New Member

    Joined:
    May 16, 2013
    Messages:
    9
    Likes Received:
    0
    How can I add some fields in the contact page:
    + Enterprise
    + Adress
    + Phone

    Thanks for the help!
     
  2. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Hello,

    Go to template-contact.php present in your theme directory and add the code given below

    Code:
      <tr>
                                                        <td><label for="contactName">Enterprise <span class="required">(required)</span>:</label></td>
                                                        <td><?php if ($nameError != '') { ?>
                                                                <span class="error"> <?php echo $nameError; ?> </span>
                                                                  <?php } ?>
                                                            <input type="text" name="contactName" id="contactName" value="<?php if (isset($_POST['contactName']))
                                                                      echo $_POST['contactName']; ?>" class="required requiredField" />
                                                        </td>
                                                    </tr>    <tr>
                                                        <td><label for="contactName">Address <span class="required">(required)</span>:</label></td>
                                                        <td><?php if ($nameError != '') { ?>
                                                                <span class="error"> <?php echo $nameError; ?> </span>
                                                                  <?php } ?>
                                                            <input type="text" name="contactName" id="contactName" value="<?php if (isset($_POST['contactName']))
                                                                      echo $_POST['contactName']; ?>" class="required requiredField" />
                                                        </td>
                                                    </tr>    <tr>
                                                        <td><label for="contactName">Phone <span class="required">(required)</span>:</label></td>
                                                        <td><?php if ($nameError != '') { ?>
                                                                <span class="error"> <?php echo $nameError; ?> </span>
                                                                  <?php } ?>
                                                            <input type="text" name="contactName" id="contactName" value="<?php if (isset($_POST['contactName']))
                                                                      echo $_POST['contactName']; ?>" class="required requiredField" />
                                                        </td>
                                                    </tr>
    Sending image for reference

    [​IMG]


    This will solve your issue.
     

Share This Page