WordPress Conditional for Homepage SlideDeck Theme Code Snippet


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.