Shortcodes in front-page.php

Discussion in 'Infoway WordPress Theme' started by goldenshoes1, Oct 12, 2015.

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

    goldenshoes1 New Member

    Joined:
    Apr 3, 2013
    Messages:
    12
    Likes Received:
    0
    Hello, I want to add the following .php:

    <?php echo do_shortcode('[custom-facebook-feed]'); ?>

    in this area on the front page:

    <div class="infotag">
    <?php if (inkthemes_get_option('inkthemes_main_heading') != '') { ?>
    <?php echo stripslashes(inkthemes_get_option('inkthemes_main_heading')); ?>
    <?php echo do_shortcode(‘[custom-facebook-feed]’); ?>
    <?php } else { ?>
    <p> </p>
    <?php } ?>
    </div>

    Where do I put it or what do I replace? I've tried several variants. Is it possible to use this shortcode on the fron page? This is the Featured Header section directly below the slider on the front page.

    Thank you!

    Kate
     
  2. priya

    priya Guest

    Hello,

    Greetings from InkThemes!

    You can use the above code in front-page.php file.

    Please follow the screenshot given below.

    add_shortcode.png

    For your knowledge, we are using "wp-editor" plugin to edit the file.

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

    Hope it will resolve your issue

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. goldenshoes1

    goldenshoes1 New Member

    Joined:
    Apr 3, 2013
    Messages:
    12
    Likes Received:
    0
    Thank you!
     
Thread Status:
Not open for further replies.

Share This Page