Need help? Check out our Support site, then

Twenty Ten insert slider in the header

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

    The blog I need help with is

  2. 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.

  3. My mistake, thanks a lot Lance.

Topic Closed

This topic has been closed to new replies.

About this Topic