Contact US settings

Discussion in 'Compass WordPress Theme' started by computerpros, Jan 11, 2016.

  1. computerpros

    computerpros Member

    Joined:
    Jan 4, 2016
    Messages:
    34
    Likes Received:
    0
    Where can I edit the info for the Contact Us page. The only thing I have been able to do is add the map, but I do not see where to edit the email address to where the "Submit Message" goes. Also, is there a way to add a phone number to this page?
     

    Attached Files:

  2. priya

    priya Guest

    Hello,

    Greetings from InkThemes!

    Please follow the screenshot given below.

    mail_id.png

    To add phone no, you just need to follow the screenshots given below.

    1) add_phone_no.png

    2) add_phone_no2.png

    Code is as follow...
    Code:
        <input type="text" id="contactName" name="Phone_no"  value="<?php if (isset($_POST['Phone_no']))
                    echo $_POST['Phone_no']; ?>" class="required requiredField" placeholder="<?php echo Phone_no; ?>" required/>
                    <?php if ($nameError != '') { ?>
            <span class="error"> <?php echo $nameError; ?> </span>
        <?php } ?> 
    Code:
      if (trim($_POST['Phone_no']) === '') {
            $nameError = 'Please enter your phone no.';
            $hasError = true;
        } else {
            $name = trim($_POST['Phone_no']);
        }  
    For your information, I am using "WP-Editor" plugin to edit files.

    You can also download and use it from the link https://wordpress.org/plugins/wp-editor/.

    After activating this plugin, you will get the same screen as shown in the screenshot.

    Hope it will resolve your issues..

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. computerpros

    computerpros Member

    Joined:
    Jan 4, 2016
    Messages:
    34
    Likes Received:
    0
    Can I input this code anywhere within the template_contact.php or does it need to be in a specific spot or replace something else listed in the template?

    Question: You stated: "After activating this plugin, you will get the same screen as shown in the screenshot. " I do not see the screen shot you mention.
     
  4. priya

    priya Guest

    Hello,

    You need to put the code at the same place as I have mentioned in my screenshot like line no: 27 and 92.

    And after activating the plugin, Go through template_contact.php page (Dashboard=>Appearance=>Theme Editor) and then you will get the same screen..

    Hope you will find it helpful..

    Do let me know if you need more assistance,
    Thanks & Regards!
    Priyanka
    InkThemes.com
     

Share This Page