Support » Plugin: Meteor Slides » Meteor Slideshow on home page only

  • Resolved linzinz


    Hi Josh,

    Please can you tell me what code needs to be added to header.php to add the meteor slideshow only to the home page header (where the default images are)and where I should add it. I have used this in Twenty Ten before but there is a lot more code in the Twenty Eleven header.php

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Josh Leuze


    Hi, you can use the code in this Gist to replace the header.php file in TwentyEleven, then it will replace the featured image in the header with a slideshow on the homepage.

    Thanks Josh, that worked. Are you able to point me in the right direction to put the navigation menu above the slideshow. I have tried moving the access div above the slideshow code but then the slideshow disappears. Ideally I would like the menu to be aligned to the right of the default title and description.
    Any help will be greatly appreciated!

    Plugin Author Josh Leuze


    I updated the Gist to move the nav above the slideshow or featured images:

    But you would have to tweak the CSS to get it to layout correctly, floating the nav to the right of the title and description, and probably clearing that float after the nav.

    Tried the updated code but nothing happened.
    I am ok with css so once I have the menu above the slideshow I’ll be ok.

    Plugin Author Josh Leuze


    Updated the Gist again, it’s working on my test site.

    Thanks Josh, I had a play before you updated and added the access code within the hgroup and adjusted with css, it seems to be fine.

    I needed to ask you another question if you don’t mind?
    I would like to put a separate slideshow in the sidebar widget area. These are going to be smaller around 340px by 220px. I made a new slideshow and uploaded the new slides and assigned them to that slideshow.
    I then added them to the meteor slideshow widget. That worked but they also appeared in the header slideshow (although distorted of course)
    What am I doing wrong?

    Figured it out – just needed to add the header slideshow name to the header.php

    Thanks for all the time you put into this plugin Josh and all the help you continue to give!

    Plugin Author Josh Leuze


    You’re welcome, thanks for trying my plugin!

    Hi Josh,
    I have the same problem with the above post, I’d like the meteor slider in my homepage also. Im using Prosumer template.
    I already figured out the widget on my sidebar, but i’d like tit to appear on my homepage.

    Which code to be replaced?
    What code is the replacement?

    Thank you!

    dear sir.i want to insert Meteor Slides on my home page not on every page.but i am confuse in which page i insert the code in twenty ten theme. plz help

    this code

    <?php if ( is_front_page() ) {
    if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow(); }

    Plugin Author Josh Leuze


    Try replacing the header.php file in 2010 with the version in this Gist:

    Hello Josh,
    i have this below php homepage code and i dont know exactly where i will insert the meteor_slideshow code to display the slideshow on the featured page. Please can u help?



    // File Security Check
    if ( ! function_exists( ‘wp’ ) && ! empty( $_SERVER[‘SCRIPT_FILENAME’] ) && basename( __FILE__ ) == basename( $_SERVER[‘SCRIPT_FILENAME’] ) ) {
    die ( ‘You do not have sufficient permissions to access this page!’ );
    * Index Template
    * Here we setup all logic and XHTML that is required for the index template, used as both the homepage
    * and as a fallback template, if a more appropriate template file doesn’t exist for a specific context.
    * @package WooFramework
    * @subpackage Template
    global $woo_options;


    <?php if ( $woo_options[ ‘woo_homepage_banner’ ] == “true” ) { ?>

    <div class=”homepage-banner”>
    if ( $woo_options[ ‘woo_homepage_banner’ ] == “true” ) { $banner = $woo_options[‘woo_homepage_banner_path’]; }
    if ( $woo_options[ ‘woo_homepage_banner’ ] == “true” && is_ssl() ) { $banner = preg_replace(“/^http:/”, “https:”, $woo_options[‘woo_homepage_banner_path’]); }
    <img src=”<?php echo $banner; ?>” alt=”” />
    <h1><span><?php echo $woo_options[‘woo_homepage_banner_headline’]; ?></span></h1>
    <div class=”description”><?php echo wpautop($woo_options[‘woo_homepage_banner_standfirst’]); ?></div>

    <?php } ?>

    <div id=”content” class=”col-full <?php if ( $woo_options[ ‘woo_homepage_banner’ ] == “true” ) echo ‘with-banner’; ?> <?php if ( $woo_options[ ‘woo_homepage_sidebar’ ] == “false” ) echo ‘no-sidebar’; ?>”>

    <?php woo_main_before(); ?>

    <section id=”main” class=”col-left”>

    <?php mystile_homepage_content(); ?>

    <?php woo_loop_before(); ?>

    <?php if ( $woo_options[ ‘woo_homepage_blog’ ] == “true” ) {
    $postsperpage = $woo_options[‘woo_homepage_blog_perpage’];


    $the_query = new WP_Query( array( ‘posts_per_page’ => $postsperpage ) );

    if ( have_posts() ) : $count = 0;

    <?php /* Start the Loop */ ?>
    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $count++; ?>

    /* Include the Post-Format-specific template for the content.
    * If you want to overload this in a child theme then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    get_template_part( ‘content’, get_post_format() );

    // Reset Post Data

    <?php else : ?>

    <article <?php post_class(); ?>>
    <p><?php _e( ‘Sorry, no posts matched your criteria.’, ‘woothemes’ ); ?></p>
    </article><!– /.post –>

    <?php endif; ?>

    <?php } // End query to see if the blog should be displayed ?>

    <?php woo_loop_after(); ?>

    </section><!– /#main –>

    <?php woo_main_after(); ?>

    <?php if ( $woo_options[ ‘woo_homepage_sidebar’ ] == “true” ) get_sidebar(); ?>

    </div><!– /#content –>

    <?php get_footer(); ?>

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Meteor Slideshow on home page only’ is closed to new replies.