Posted By

oriontimbers on 09/11/10


Tagged

php wordpress homepage conditionals slidedeck


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

mikoli


WordPress Conditional for Homepage SlideDeck Theme Code Snippet


 / Published in: PHP
 

URL: http://support.slidedeck.com/slidedeck/topics/have_the_slidedeck_only_on_the_homepage

Example code for a SlideDeck user to place their SlideDeck on the homepage of their WordPress site.

  1. <?php
  2. if( is_home() || is_front_page() ) {
  3. // replace the below Theme Code Snippet with your own
  4. slidedeck( 29, array( 'width' => '100%', 'height' => '300px' ) );
  5. }
  6. ?>

Report this snippet  

You need to login to post a comment.