WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
Need help (4 posts)

  1. lia92
    Member
    Posted 3 years ago #

    hi. I'm new on wordpress and would like to insert a slide show on a design I've downloaded. What I wonder is how and where to insert the code.
    I have downloaded a design called martin: (http://wordpress.org/extend/themes/martin) and would like to insert a slide show with my own photos, where you see the butterfly image. Can you help me and is it possible?

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

  2. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    Hi, that image is in the header of your theme. It looks like it is setup to show a default image, and be replaced with a featured image if the page you are on has a featured image. Do you want to always show the slideshow, or just on the homepage, or just if there isn't a featured image?

    To remove this image spot completely and replace it with the slideshow sitewide, open the theme's header.php file in a text editor and replace this block of code:

    <?php // The header image stuff ?>
    			<?php if ( get_header_image() != '' ) : ?>
    			<a href="<?php echo home_url( '/' ); ?>">
    				<?php
    					if ( is_singular() &&
    					has_post_thumbnail( $post->ID ) &&
    					( $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, 'post-thumbnail' );
    					else : ?>
    					<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    				<?php endif; ?>
    			</a>
    			<?php endif; ?>

    With the Meteor Slides template tag:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>
  3. lia92
    Member
    Posted 3 years ago #

    Yes i want to show the slideshow always, and when i tried to replace the code, i just got error. Is there something wrong?

    here is the code before i replaced it with the slideshow code. Would you take a look and mayby fix it if there´s something wrong? 
    Thank you ;)
    <?php
    /**
    * @package WordPress
    * @subpackage Martin
    * @since Martin 1.0
    */
    ?><!DOCTYPE html>
    <!--[if IE 6]>
    <html id="ie6" <?php language_attributes(); ?>>
    <![endif]-->
    <!--[if (gt IE 6) | (!IE)]><!-->
    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <title>

    <?php global $page, $paged; wp_title( '|', true, 'right' ); bloginfo( 'name' );

    // Conditional page description
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";

    // Conditional page number
    if ( $paged >= 2 || $page >= 2 )
    echo ' | ' . sprintf( __( 'Page %s', 'martin' ), max( $paged, $page ) );

    ?>

    </title>

    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    <?php
    // For threaded comments
    if ( is_singular() && get_option( 'thread_comments' ) )
    wp_enqueue_script( 'comment-reply' );

    // For any plugins that need to add to page header via wp_head filter
    wp_head();
    ?>

    </head>

    <body <?php body_class(); ?>>
    <div id="outerwrap">

    <div id="wrapper">

    <div id="container" class="hfeed">

    <div id="header">
    <div id="masthead" role="banner">
    <?php // The site/blog name ?>

    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    <<?php echo $heading_tag; ?> id="site-title">
    <span>
    " title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?>
    </span>
    </<?php echo $heading_tag; ?>>
    <div id="site-description"><?php bloginfo( 'description' ); ?></div>

    <?php // Begin header widget space ?>
    <div id="header-widget-area">
    <?php if ( is_active_sidebar( 'header-widget-area' ) ) : ?>

    <div id="header-widget">
    <?php dynamic_sidebar( 'header-widget-area' ); ?>
    </div><!-- #feature.widget-area -->

    <?php endif; ?>
    </div>
    <?php // End header widget space ?>
    </div><!-- #masthead -->

    <div id="branding">

    <div id="hornav">

    <div class="hornavtop"></div>
    <?php // The first custom navigation menu. Defaults to wp_list_pages ?>
    <div id="access" role="navigation">
    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    </div><!-- #access -->

    <?php // The search bar under second custom navigation menu ?>
    <div class="hsearch"><?php get_search_form(); ?></div>
    <div class="hornavbottom"></div>
    <div class="clear"></div>
    </div>

    <div id="himageblock">
    <div class="himage">
    <?php // The header image stuff ?>
    <?php if ( get_header_image() != '' ) : ?>
    ">
    <?php
    if ( is_singular() &&
    has_post_thumbnail( $post->ID ) &&
    ( $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, 'post-thumbnail' );
    else : ?>
    <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    <?php endif; ?>

    <?php endif; ?>
    </div><!--#himage-->
    <div class="himageright">

    <?php wp_nav_menu( array( 'container_class' => 'menu-header','fallback_cb' => 'martin_secondary_nav', 'theme_location' => 'secondary' ) ); ?>

    </div>

    </div><!--#himageright-->
    </div><!--#himageblock-->

    </div><!-- #branding -->

    </div><!-- #header -->

    <div id="contentblock">

  4. Josh Leuze
    Member
    Plugin Author

    Posted 3 years ago #

    Try using this header file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic