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 cucinafotografica.wordpress.com.

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

    You could post your question to the WordPress.org forum, though: http://wordpress.org/support/. Looks like there are already quite a few Twenty Ten mods in discussion at: http://wordpress.org/tags/twenty-ten or http://wordpress.org/tags/twentyten, 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