slider not showing in my blog theme
  • Vote Up0Vote Down sanatsanat September 2011
    I activated the plugin in my blog - http://www.websigmas.com .

    My blog theme has a slider section but it is not running from day one. So I tried to use the plugin to support the slider section with featured articles on home page of my blog.

    I pasted the code given in index.php:

    <?php if ( function_exists( 'get_smooth_slider' ) ) {<br /> get_smooth_slider(); }
    if(have_posts()) : while(have_posts()) : the_post();
    ....(rest of the loop code)
    ?>

    But it is not working. Is there any conflict between the existing slider and your plugin?

    Please help me with the solution. I downloaded the theme from http://wp-clear-new.solostreamsites.com/ (demo site).

    Any suggestions from you
    through email would be appreciated.
  • 1 Comment sorted by
  • Thanks Sanat for putting this query here as well. We have already resolved this query through email communication by looking into the theme sent by Sanat. Here is the solution,

    I tested the theme and Smooth Slider works fine on that. Here is how I did the changes,

    1. If you want to have Smooth Slider below the theme's default featured posts area,

    If you have selected "Home Page Post Layout" as "option -1 - Standard Blog Layout" on theme's settings page then make changes in index1.php file of template. Go ahead and add the smooth slider code inside the is_home() condition. Here is how the final code will look (I have only added the Smooth Slider part in this code, rest is already there),

    if (is_home()) {
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts(array(
    'post__not_in' => $do_not_duplicate,
    'paged' => $paged
    ));

    if ( function_exists( 'get_smooth_slider' ) ) {
    get_smooth_slider(); }

    }
    if (have_posts()) : while (have_posts()) : the_post(); ?>


    If you have selected different value for "Home Page Post Layout" in theme's settings page then the changes will be in different file (you can see that in index.php).

    2. If you want to replace default slider with Smooth Slider on homepage

    To have the slider on featured post area, make the changes as below in index.php file,




    <?php if ( is_home() && $paged < 2 && get_option('solostream_features_on') == 'Narrow Width Featured Content Slider') { ?>
    <?php if ( function_exists( 'get_smooth_slider' ) ) {<br /> get_smooth_slider(); }?>
    <?php } ?>


    (I have only added the Smooth Slider part in this code, rest is already there).

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In Apply for Membership

In this Discussion