Viewing 1 replies (of 1 total)
  • Plugin Author Phil Ewels

    (@tallphil)

    Hi there,

    The code you need is in the FAQ:

    Can I insert the carousel into a WordPress template instead of a page?
    Absolutely – you just need to use the do_shortcode WordPress function. For example:

    <?php echo do_shortcode('[image-carousel]'); ?>

    If you copy and paste that line of code into your existing front-page.php or home.php template file you should see it appear. Where in the template depends on where you want it to display, relative to your other content. You can experiment with this.

    However, remember that this may not be necessary if you are using a static front page – if this is the case, you can just paste the shortcode [image-carousel] into your page content in the WordPress administration and it should work. No template editing required.

    Does that make sense? Let me know if you have any further questions!

    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘Placing code in home-page.php’ is closed to new replies.