New Topic

Reply To: Different Slider for different pages with same template

Home › Forum › Customization › Different Slider for different pages with same template › Reply To: Different Slider for different pages with same template

#1128

StartupWP
Support

Looks like it was just missing one bracket:

<?php
if ( is_home() && $options['slider'] ) {
echo '<div id="slider">'.do_shortcode('[nivoslider slug="slider"]').'</div>';
} elseif ( is_page(39) ) {
echo '<div id="slider">'.do_shortcode('[nivoslider slug="slider2"]').'</div>';
} else {
}
?>