I'd like to put a slider on every page and preferably have the choice of which slider on each page. Is this possible?
Putting Slider on other pages.
2 posts from 2 voices-
Posted 1 year ago #
-
Hey,
currently it's not possible to use the slider on other pages. You can duplicate the slider code from index.php but it will display the same slider with the same content on every page then. If you want to add the slider to pages open up page.php and before following code:
<!-- ###################################################################### --> <div id="main"> <!-- ###################################################################### -->insert:
<?php // FRONTPAGE SLIDESHOW // // check if slideshow should be displayed? if($k_option['mainpage']['slider'] != 'none') : ?> <!-- FEATURED POST AREA ################################################### --> <div id="feature_wrap"> <!-- ###################################################################### --> <div id="featured" class='<?php echo $k_option['mainpage']['slider']; ?>'> <?php //check slider and apply size to previe images $kimg = array('shortcut' => 'L', 'overwrite' => 'none'); if($k_option['mainpage']['slider'] == 'fadeslider') { $kimg = array('shortcut' => 'XL', 'overwrite' => 'none'); } // start the loop that gernerates the images $loopcount = 1; $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']); if ($additional_loop->have_posts()) : while ($additional_loop->have_posts()) : $additional_loop->the_post(); $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg['shortcut'],$kimg['overwrite']), 'display_link' => array('none'), 'wh' => $k_option['custom']['imgSize'][$kimg['shortcut']] )); // Featured Entry: ?> <div class="featured featured<?php echo $loopcount; ?>"> <a href="<?php the_permalink(); ?>"> <span class='feature_excerpt'> <strong class='sliderheading'><?php the_title(); ?></strong> <span class='sliderdate'><?php the_time('M d, Y') ?></span> <span class='slidercontent'> <?php $content = strip_tags(get_the_excerpt(),'<a><strong><span>'); echo $content; ?> </span> </span> <?php echo $preview_image; ?> </a> </div> <?php // end entry $loopcount ++; endwhile; endif; ?> </div><!-- end #featured --> <span class='bottom_right_rounded_corner ie6fix'></span> <span class='bottom_left_rounded_corner ie6fix'></span> <!-- ###################################################################### --> </div><!-- end featuredwrap --> <!-- ###################################################################### --> <?php endif; // end slideshow ?>Posted 1 year ago #
Reply
You must log in to post.














