Twenty Ten insert slider in the header

  • Unknown's avatar

    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

    <?php
    // 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: (visible only to logged in users)

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

  • Unknown's avatar

    My mistake, thanks a lot Lance.

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