Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6446

    Hello,

    I would like to substitute the slideshow for this one SlideDeck

    I just need to include this

    <?php slidedeck( 55, array( ‘width’ => ‘100%’, ‘height’ => ‘300px’ ) ); ?>

    And delete the newcast slideshow code.

    Could someone teach me how? i would appreciate it

    Thanks

    http://pvpbrasil.com.br/

    #54204

    Hey,

    In your index.php your slideshow is included by this code:

    <div id="feature_wrap">
    <!-- ###################################################################### -->
    <div id="featured" class='<?php echo $k_option['mainpage']['slider']; ?>'>

    <?php

    //check slider and apply size to previe images
    $kimg = array('shortcut' => 'L', 'overwrite' => 'none');

    if($k_option['mainpage']['slider'] == 'fadeslider')
    {
    $kimg = array('shortcut' => 'XL', 'overwrite' => 'none');
    }

    // start the loop that gernerates the images
    $loopcount = 1;
    $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']);
    if ($additional_loop->have_posts()) :
    while ($additional_loop->have_posts()) : $additional_loop->the_post();

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

    // Featured Entry:
    ?>
    <div class="featured featured<?php echo $loopcount; ?>">
    <a href="<?php the_permalink(); ?>">
    <span class='feature_excerpt'>
    <strong class='sliderheading'><?php the_title(); ?></strong>
    <span class='sliderdate'><?php the_time('M d, Y') ?></span>
    <span class='slidercontent'>
    <?php
    $content = strip_tags(get_the_excerpt(),'<a><strong><span>');
    echo $content;
    ?>
    </span>
    </span>
    <?php echo $preview_image; ?>
    </a>
    </div>
    <?php
    // end entry

    $loopcount ++;
    endwhile; endif;
    ?>

    </div><!-- end #featured -->

    <span class='bottom_right_rounded_corner ie6fix'></span>
    <span class='bottom_left_rounded_corner ie6fix'></span>

    <!-- ###################################################################### -->
    </div><!-- end featuredwrap -->

    I’m afraid your code won’t work as you expect it will work. To do this properly you’ll need a lot more code and quite some time. Feel free to try it though.

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

The topic ‘How to subistitue the slideshow?’ is closed to new replies.