Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7104

    Two questions about the accordion slider:

    1) How to I control what part of the featured image is displayed in the slider?

    I have set a featured image for a post and it looks fine in the thumbnail on the home page. However the slider seems to take an arbitrary segment of the picture that I don’t know exactly how to control.

    2) How can I eliminate posts with no featured image from the slider?

    I’d like for the slider to exclude any posts that don’t have a featured image.

    Really appreciate the help! Thanks!

    #56658

    Hey,

    1) WordPress center crops all images which are bigger than the slider images. You can upload right sized images if you want to avoid cropped images (or if you’d like tocrop the images manually) – the slider images are 700 x 320px.

    2) The slider can’t do this out of the box. However you can try to modify index.php – replace following line:

    $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']);

    with:

    $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']);

    and:

    while ($additional_loop->have_posts()) : $additional_loop->the_post();

    with:

    while ($additional_loop->have_posts()) : $additional_loop->the_post();
    if( $loopcount > intval($k_option['mainpage']['feature_count']) ) { break; }

    and:

    $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']]
    ));

    with:

    $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']]
    ));

    if (empty($preview_image)) { endwhile; }

    #56659

    Thanks for the quick response. I’ll give it a try…

    #56660

    I hope it works :)

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Slider Issues’ is closed to new replies.