WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] Meteor Slideshow on home page only (13 posts)

  1. linzinz
    Member
    Posted 1 year ago #

    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
    Thanks!

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

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. linzinz
    Member
    Posted 1 year ago #

    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!

  4. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    I updated the Gist to move the nav above the slideshow or featured images: https://gist.github.com/3151274

    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.

  5. linzinz
    Member
    Posted 1 year ago #

    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.

  6. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. linzinz
    Member
    Posted 1 year ago #

    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?

  8. linzinz
    Member
    Posted 1 year ago #

    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!

  9. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome, thanks for trying my plugin!

  10. allanpelias
    Member
    Posted 1 year ago #

    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!

  11. amiriqbal
    Member
    Posted 1 year ago #

    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(); }
    }?>

  12. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Try replacing the header.php file in 2010 with the version in this Gist: https://gist.github.com/JLeuze/4530951

  13. afamative
    Member
    Posted 11 months ago #

    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?

    *************************************************************************

    index.php

    <?php
    // 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!' );
    }
    ?><?php
    /**
    * 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
    */
    get_header();
    global $woo_options;

    ?>

    <?php if ( $woo_options[ 'woo_homepage_banner' ] == "true" ) { ?>

    <div class="homepage-banner">
    <?php
    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>
    </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'];
    ?>

    <?php

    $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++; ?>

    <?php
    /* 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() );
    ?>

    <?php
    endwhile;
    // Reset Post Data
    wp_reset_postdata();
    ?>

    <?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(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic