Categories

Featured templates

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

Phil Nowak April 18, 2012
Rating: 4.2/5. From 5 votes.
Please wait...

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 editorAppearance >> 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.

Best Wordpress Website Themes
This entry was posted in WordPress Tutorials and tagged carousel, page, slider, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket