Support » Plugin: Meteor Slides » [Plugin: Meteor Slides] weaver ii header slider

  • Resolved herbie48

    (@herbie48)


    Well I have jumped into the WordPress whirlpool with Weaver ii as it looked like the best one to give me want I want and help me to learn along the way – and having fun ! The code stuff is where my brain needs to latch on though. I am trying to get meteor slideshow working but all the code info I have found doesnt seem relevant to this version = 3.3.2. If someone can tell me exactly where to drop the code, I just then should also be able to understand why it should go there – part of the learning process. This is the code I am to paste: <?php if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow(); } ?> Here is the section I am assuming it should somewhere fit but I have tried various spots without success.

    /* ======== HEADER IMAGE ======== */
    	    global $weaverii_header;
    
    	    if ( !( weaverii_is_checked_page_opt('ttw-hide-header-image') && !is_search() )
    		&& !( weaverii_getopt_checked('wii_normal_hide_header_image') && !weaverii_use_mobile('mobile') )
    		&& !( weaverii_getopt_checked('wii_mobile_hide_header_image') && weaverii_use_mobile('mobile'))
    		|| ( weaverii_getopt_checked('wii_ipad_show_header_image') && weaverii_use_mobile('tablet')) ) {
    
    		if ( !weaverii_getopt_checked('wii_hide_header_image')
    		    && !(weaverii_getopt('wii_hide_header_image_front') && (is_front_page() || is_home()) ) ) {
    
    		    echo("\t\t<div id=\"header_image\">\n");
    		    if (weaverii_getopt('wii_link_site_image')) {
    ?>
    		    <a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    <?php
    		    }
    		    global $weaverii_header;
    		    /* Check if this is a post or page, if it has a thumbnail,  and if it's a big one */
    		    if ( is_singular()
    			&& !(weaverii_use_mobile('mobile') && weaverii_getopt('wii_hide_mobile_fi'))
    			&& !weaverii_getopt('wii_hide_featured_header')
    			&& has_post_thumbnail( $post->ID )
    			&& ($image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ) )  /* $src, $width, $height */
    			&& $image[1] >= $weaverii_header['width']
    		       ) {
    			echo get_the_post_thumbnail( $post->ID, 'full' );
    		    } else {
    			if (weaverii_use_mobile('mobile') && weaverii_getopt('_wii_mobile_header_url')) {
    			    echo '<img src="' . esc_attr(weaverii_getopt('_wii_mobile_header_url')) .
    				'" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' . "\n";
    			} else if (weaverii_use_mobile('tablet') && weaverii_getopt('_wii_mobile_tablet_header_url')) {
    			    echo '<img src="' . esc_attr(weaverii_getopt('_wii_mobile_tablet_header_url')) .
    				'" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' . "\n";
    			} else if (($alt_img = weaverii_getopt('wii_alt_header_img')) != '') {
    			    if (strstr($alt_img,'<img') === FALSE)
    				echo '<img src="' . esc_attr($alt_img) .
    				    '" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />' . "\n";
    			    else
    				echo esc_attr($alt_img);
    			} else {
    			    $hdr = get_header_image();
    			    if ($hdr) {
    ?>
    			<img src="<?php echo $hdr ?>" width="<?php echo $weaverii_header['width']; ?>" height="<?php echo $weaverii_header['height']; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
    <?php			    } else {
    				echo '<div class="weaver-clear"></div>'; // needs a clear if not an img
    			    }
    			}
    		    }
    		    if (weaverii_getopt('wii_link_site_image'))
    			echo("</a>\n");	/* need to close link */
    		    echo("\t\t</div><!-- #header_image -->\n");
    		} /* closes header > 0 */
    	    } /* end wii_hide-header-image */

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

Viewing 1 replies (of 1 total)
  • You do not need the code
    <?php if ( function_exists( ‘meteor_slideshow’ ) ) { meteor_slideshow(); } ?>
    In Weaver II.
    Just Insert the shortcode in the content area of your choice.

    Always test your slideshow in a simple test page content to make sure you defined everything properly before trying more compliated places.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Meteor Slides] weaver ii header slider’ is closed to new replies.