If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

WordPress. How to make slider/carousel appear on pages you need

In this tutorial you will learn the way to make slider work on page you need as most of templates use slider for home page only.

1) Making it appear on page you need is really easy, you need to open “header.php” file within your template. You can use WordPress editor – Appearance >> Editor in your Dashboard or edit file an any editor:

2) Locate slider block, regularly it is at the end of the file similar to:

      
<?php include_once(TEMPLATEPATH . '/slider.php'); ?>

3) Use conditional tags to make it work for certain page, for example:

a) To make it for for page with ID 9:

      <?php if ( is_page(9) ) {?>
               
<?php include_once(TEMPLATEPATH . '/slider.php'); ?>
<?php } ?>

b) To make it work for pages only:

      <?php if ( is_page() ) {?>
               
<?php include_once(TEMPLATEPATH . '/slider.php'); ?>
<?php } ?>

c) To make it work for home page only:

      <?php if ( is_home() ) {?>
               
<?php include_once(TEMPLATEPATH . '/slider.php'); ?>
<?php } ?>

4) Test your website and make sure you’ve added scripting correctly. Note that after you activate slider for different page you may need to edit CSS to make it display properly.

To find out more about WordPress conditional tags please visit:

http://codex.wordpress.org/Conditional_Tags

Feel free to check the detailed video tutorial below:

WordPress. How to make slider/carousel appear on pages you need.

WordPress. How to make slider/carousel appear on pages you need, 3.7 out of 5 based on 3 ratings