Add featured content slider to WordPress and thesis theme-Smooth slider plugin review

Smooth  slider Plugin for wordpress is used to add a featured content slider to homepage or to all the posts based upon the setting.This slider will be very useful in reducing site bounce rate at the homepage.

Here is a short tutorial for adding a featured post slider to WordPress blog

featured-content-slider-thesis

1.Download the latest version of the smooth-slider plugin here<link>

2.Go to WordPress dashboard and install the Smooth  slider plugin by Plugins>>Add new

3.Activate the plugin after uploading it.

For Thesis Theme 2.0 :

Note:Back up the files before add the code
4.Now open your custom_functions.php file in the custom folder of the thesis theme using an FTP client.

5.Add the below php code to your  custom_functions.php file and save it.This code will add the slider to the homepage of your wordpress blog

/*Featured Content Slider Thesis theme 2.0 Tutorial by MyTechShout.com*/
function thesis_content_slider() { ?>
<?php if (is_home()){ ?>
<?php if ( function_exists( ‘get_smooth_slider’ ) ) { get_smooth_slider(); } ?>
<?php }
}
add_action(‘thesis_hook_before_content’, ‘thesis_content_slider’);

This code will add the featured content slider to homepage of the thesis theme above the list of recent posts.

For adding featured slider to WordPress  theme homepage

4.After installing the plugin,open the index.php file using the dashboard editor  by clicking on the tab Appearance>>Editor

5.Add the below php code to the index file at the right place and save it

if ( function_exists( ‘get_smooth_slider’ ) ) { get_smooth_slider(); }

For add the slider to before the list of the posts in your homepage add the below code also before the wordpress loop and save it

if(have_posts()) : while(have_posts()) : the_post();

6.Its all done,now the featured content slider will be added to your blog homepage.

Hope you have successfully installed the plugin in your blog.If you have any problems do contact us via comments.

Don’t forget to subscribe to receive free updates from our site 🙂

Meet the Author

Gowtham V
6 comments… add one
  • Jason Cadet Jan 20, 2012, 5:42 pm

    Hey, I’ve added the code as you’ve mentioned above for Thesis theme and the slider doesn’t show up on my home page. I’m using the latest Wordpress and Thesis Theme on my blog.

    Any suggestions as to why it might not be showing up?

    • Gowtham Jan 20, 2012, 7:24 pm

      Jason Cadet make sure that you have added only the first 7 lines code mentioned for the thesis theme in the right place and not the other codes for wordpress theme.I have checked the code with my site.Its working fine.Do mention what error you are getting if any.Thanks.

  • faouzane@moutonbreak Feb 1, 2012, 11:50 pm

    I”m having the same problem as Jason here. Any clue ?

  • faouzane@moutonbreak Feb 2, 2012, 12:06 am

    I found the culprit. It’s because of the quotes. If you copy pasted the code, take the time to correct the quotes : ‘ => ‘

  • Tate Feb 10, 2012, 12:17 pm

    worked like a charm. good work!

    • Gowtham Feb 10, 2012, 2:39 pm

      Thanks Tate.Do visit again for more posts like this:-)

Leave a Comment