Forums

Meteor Slides
Where to insert code in 2010 Twentyten (4 posts)

  1. hadef
    Member
    Posted 1 year ago #

    Hi! I watched your video on where to insert the php code in the twentyten theme, however I am not quite certain where I should paste the code in the 2010 twentyten version of the "header.php" file.

    Also I'd like to be sure that it will replace my header by a slide show or do I have to create a new home page on my blog. Which is best?

    Thank you very much for your help.

    http://wordpress.org/extend/plugins/meteor-slides/

  2. JLeuze
    Member
    Posted 12 months ago #

    Do you want to replace the featured image in the header with a slideshow and have that slideshow on every page?

    This is the code that loads the featured image in the header, it begins on line 68:

    <?php
    					// Check if this is a post or page, if it has a thumbnail, and if it's a big one
    					if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    							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 );
    					elseif ( get_header_image() ) : ?>
    						<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    					<?php endif; ?>

    You could replace that with the slideshow template tag:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>
  3. hadef
    Member
    Posted 11 months ago #

    Thanks for the reply. Maybe I made a mistake on my previous mail, because I don't have the same code. I meant 2010 weaver.

    I also notice the possibilities of inserting code in the header via the advance options of the 2010 weaver theme. What is best for meteorslides?

    Thank you for your time again.

  4. JLeuze
    Member
    Posted 11 months ago #

    Hi hadef, yes this is easier to do with Weaver. You can use the Meteor Slides shortcode in the Weaver options.

    Check out the Weaver documentation to learn how to do this:
    http://wpweaver.info/wp-content/themes/weaver/help.html#AdvancedOptions

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic