How to edit root files in order to display Contact Form7 ?

Discussion in 'Squirrel WordPress Theme' started by gmcginnis, Jul 20, 2013.

Thread Status:
Not open for further replies.
  1. gmcginnis

    gmcginnis New Member

    Joined:
    Jul 10, 2013
    Messages:
    2
    Likes Received:
    0
    Hi! I've read several questions and answers regarding inserting "Contact Form 7" on the homepage. I understand that in order to have the contact form displayed outside of the footer, it requires some form of custom programming. It seems as though you all have a several clients who are interested in displaying the contact form higher on the home page, above the fold.

    Is there any way you could share with us how to edit the root files in order to display Contact Form 7 in the Homepage Right Col Heading and Description on Squirrel Pro? Specifically, the <div class="text-featute-two"> and 'inkthemes_rightcoldesc'.

    Thank you!
     
  2. Gourav

    Gourav Support Staff

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

    Go to front-page.php present in your theme directory and replace current code

    Code:
        <div class="text-featute-two">
                    <?php if (inkthemes_get_option('inkthemes_rightcolhead') != '') { ?>
                        <h3><?php echo stripslashes(inkthemes_get_option('inkthemes_rightcolhead')); ?></h3>
                    <?php } else { ?>
                        <h3>Mobile Device Friendly</h3>
                    <?php } ?>             
                    <?php if (inkthemes_get_option('inkthemes_rightcoldesc') != '') { ?>
                        <p><?php echo stripslashes(inkthemes_get_option('inkthemes_rightcoldesc')); ?></p>
                    <?php } else { ?>
                        <p>Product Developers Internet Marketer make more sales when and they can easily display their products with the buy links in the perfect location.</p>
    <?php } ?>           
                </div>
    With code given below

    Code:
    <?php echo do_shortcode('Enter your contact form7 shortcode here'); ?>
    Sending image for reference
    2013-07-22_1120.png
    This will solve your issue.
     
  3. gmcginnis

    gmcginnis New Member

    Joined:
    Jul 10, 2013
    Messages:
    2
    Likes Received:
    0
    Awesome! Thank you so much. This saved me some time and money! Great support!!! I'll remember the 'do_shortcode' in the future.
     
Thread Status:
Not open for further replies.

Share This Page