Short Codes on Front Page

Discussion in 'BusinessGrow One Page WordPress Theme' started by bayernsoftware, Feb 4, 2014.

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

    bayernsoftware Member

    Joined:
    Feb 1, 2014
    Messages:
    35
    Likes Received:
    4
    Location:
    Indiana, USA
    I need to add a short code in the contact us form area. It is plug in Contact Form 7. I do not like the default contact form and am not liking the cost of the FormGet option.

    i have tried the following
    [contact-form-7 id="68" title="Contact Technical Support"] *This just displays the text
    <?php echo do_shortcode( '[contact-form-7 id="68" title="Contact Technical Support"]' ); ?> * This displays nothing
    <?php do_shortcode( '[contact-form-7 id="68" title="Contact Technical Support"]' ); ?> * This also displays nothing
     
    angustait likes this.
  2. angustait

    angustait New Member

    Joined:
    Aug 4, 2012
    Messages:
    2
    Likes Received:
    1
    Location:
    Alnwick, UK
    I have the same problem, am using XYZ Contact, shortcode displays as text!
     
    bayernsoftware likes this.
  3. 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 the current code

    Code:
                                                     <?php if (inkthemes_get_option('inkthemes_our_contact_input_iframe_heading') != '') { ?>
                                                        <h1><?php echo stripslashes(inkthemes_get_option('inkthemes_our_contact_input_iframe_heading')); ?></h1>
                                                    <?php } else { ?>
                                                        <h1>Create your own form at <a href="http://formget.com/app" target="_blank">formget.com/app</a></h1>
                                                    <?php } ?>
                                                    <?php if (inkthemes_get_option('inkthemes_contact_iframe_code') != '') { ?>
                                                        <?php echo stripslashes(inkthemes_get_option('inkthemes_contact_iframe_code')); ?>
                                                    <?php } else { ?>
        <?php get_template_part('contact'); ?>
    <?php } ?>
    with code given below

    Code:
    <?php echo do_shortcode( 'Enter Your Contact Form Shortcode here' ); ?>  
    Check image for reference

    2014-02-05_1635.png



    Thanks & Regards
    Gourav Shrivastava
     
  4. bayernsoftware

    bayernsoftware Member

    Joined:
    Feb 1, 2014
    Messages:
    35
    Likes Received:
    4
    Location:
    Indiana, USA
    Thank You, Thank You, Thank You!!
    You can mark this issue closed.
     
Thread Status:
Not open for further replies.

Share This Page