• Resolved R-P

    (@r-p)


    Hi,

    I want to add a slideshow in the header of the Twenty Ten theme. In stead of the standard header image. I don’t know how to do that. Can you help me?

Viewing 11 replies - 16 through 26 (of 26 total)
  • Hey Josh,
    This works like a charm – thanks again!

    I am using Weaver ( brown ) and tried to change the PHP header code as you recommended to have a slideshow on page one but not on the others….I get a parse error from my server….have watched your video also but cannot get the slideshow to appear. help please, I am no expert but I can follow directions hopefully.

    Plugin Author Josh Leuze

    (@jleuze)

    I wouldn’t edit Weaver directly, you can do this by adding the shortcode to the header in the Weaver options: https://demo.wpweaver.info/per-page-features/header-meteor-slideshow/

    I love the slideshow!

    I’d like to have the twentyten banner, AND the slideshow in the header on the home page. Then, just the banner on the rest.

    I used your code above and it worked great on the home page. However, on the other pages, I get double banners.

    I am pretty new to php and wordpress, so any help appreciated.

    Thanks.

    Plugin Author Josh Leuze

    (@jleuze)

    Thanks for trying Meteor Slides, try using this code here:

    <?php if ( is_front_page() ) { if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); }
    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 ) :
    	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 } else {
    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 ) :
    	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; } ?>

    Hi there.

    First off I would like to thank you for a great plugin.

    I have followed your guide on vimeo but have encountered a strange problem. No matter what I can’t get the default heading image to go away – it just sits underneath the slide I want to put in the header.

    I have tried removing the header in the settings under the twenty ten theme also, but then that space is just left blank in the header underneath the slides.

    I copied the line of code from the plugin into the header.php file as described…

    Here’s the wp site:
    https://www.billboardpainting.com

    Please help!

    Plugin Author Josh Leuze

    (@jleuze)

    Hi, thanks for trying Meteor Slides. If you are using the Weaver theme, you don’t need to edit the theme’s code, you can make these changes through the theme options.

    From the documentation for the latest version:

    For example, assume you’ve installed the Meteor Slides plugin, and have uploaded your rotating header images for the plugin to use. To add this slide show header image, you should first disable the default header image by setting the header image size to zero in the Main Options tab. Then, add this code to the Site Header Insert Code box:

    <div class="ttw-center">[meteor_slideshow]</div>

    Note that the built-in ttw-center CSS class will ensure the slide show is displayed properly. Without appropriate CSS styling, you may get unexpected placement of the plugin output. The ttw-center class will usually do what you want.

    Thx – that solved the problem!

    Plugin Author Josh Leuze

    (@jleuze)

    No problem!

    I still get errors when trying to do the same (albeit in twenty eleven) using the non-typeo code

    Plugin Author Josh Leuze

    (@jleuze)

    @ilenerosenblum That’s because this code is for 2010, not 2011. Can you open a new post for this?

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘[Plugin: Meteor Slides] Add slideshow in header Twenty Ten’ is closed to new replies.