Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php if(is_front_page() ) { ?>
    <?php echo do_shortcode( "[SlideDeck2 id=5913]" ); ?>
    <?php } ?>

    Should do the trick…

    I’ve written a complete guide to installing Slide Deck in any location in any theme.

    Or you could use this:

    Paste this code in your header.php file

    <?php
    if (is_home()) {
    echo do_shortcode('[SlideDeck2 id=007]');
    }
    ?>

    Change the i.d (007) to your own.

    Or use this code if you’re using a static page as your home page rather than the default.

    <?php
    if (is_front_page() ) {
    echo do_shortcode('[SlideDeck2 id=007]');
    }
    ?>

    Try this if the above fails.

    <?php if( is_front_page() && !is_paged() ) : ?>
        <div id="SlideDeck2">
    <?php echo do_shortcode('[SlideDeck2 id=1673]'); ?>
        </div>
    <?php endif; ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code for Implementing Only on the Home Page?’ is closed to new replies.