Twenty Ten insert slider in the header

  • Author
  • #504539


    Is it possible to insert a slider (as vslider) in the header for display featured posts or pages?
    I have made many attempts in the header.php at 68 line but witouth success

    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    if ( is_singular() &&
    has_post_thumbnail( $post->ID ) &&
    ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
    $image[1] >= HEADER_IMAGE_WIDTH ) :
    // Houston, we have a new header image!
    echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    else : ?>
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php endif; ?>

    The blog I need help with is



    This forum is for sites hosted at—and we don’t allow changing the theme template files. See or ? The difference for more information.

    You could post your question to the forum, though: Looks like there are already quite a few Twenty Ten mods in discussion at: or, so have a look there to see if anyone’s already tried this technique.



    My mistake, thanks a lot Lance.

The topic ‘Twenty Ten insert slider in the header’ is closed to new replies.