Support » Plugin: Meteor Slides » [Plugin: Meteor Slides] Cannot find place to put the Slideshow codes in the header

  • Am using Weaver PRO Admin and cannot find place in header.php code to put the Meteor Slideshow codes.

    It is a responsive site so code is:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. Or use pastebin.com instead. ]

    <header id="branding" role="banner">
    <?php
    	    /* ======== SITE LOGO and TITLE ======== */
    	    $title = (weaverii_getopt('_wii_mobile_site_title') && weaverii_use_mobile('mobile') )
    		? esc_html(weaverii_getopt('_wii_mobile_site_title')) : esc_attr( get_bloginfo( 'name', 'display' ) );
    ?>
    	    <div id="site-logo"<?php weaverii_hide_site_title();?>></div>
    	    <div id="site-logo-link" onclick="location.href='<?php echo home_url( '/' ); ?>';" <?php weaverii_hide_site_title();?>></div>
    
    <?php
    	    $h_class = ' class="title-description"';
    	    if (weaverii_getopt('wii_hide_site_title') || weaverii_is_checked_page_opt('ttw-hide-site-title')) {
    		if (!weaverii_use_mobile('mobile') || weaverii_getopt('wii_hide_site_title_mobile')) {
    		    $h_class = '';
    		}
    	    }
    	    if (weaverii_getopt('wii_title_over_header') || weaverii_getopt('wii_desc_over_header'))
    		$h_class = '';
    ?>
    	    <hgroup<?php echo $h_class; ?>>
    	    	<h1 id="site-title"<?php weaverii_hide_site_title();?>><span><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php echo $title; ?></a></span></h1>
    			<h2 id="site-description"<?php weaverii_hide_site_title();?>><?php bloginfo( 'description' ); ?></h2>
    <?php		if (($extra = weaverii_getopt('wii_header_html')) != '') { ?>
    		<div id="header-extra-html"<?php weaverii_hide_site_title();?>><?php echo do_shortcode($extra); ?></div>
    <?php
    		}
    ?>
    	    </hgroup>
    
    <?php
    	    if (weaverii_getopt('wii_top_menu_before_header') && !weaverii_getopt('wii_top_menu_before_wrapper'))
    		get_template_part('nav','top');
    	    weaverii_mobile_toggle('header');	// display toggle button
    	    weaverii_inject_area('header');	// inject header HTML
    
    	    get_sidebar('header');
    
    	    weaveriip_header_insert();			// add W-II Pro injection
    
    	    /* The Dynamic Headers shows headers on a per page basis - will also optionally add site link */
    	    if (function_exists('show_media_header'))
    		show_media_header(); 			// Plugin support: **Dynamic Headers**
    
    	    /* ======== 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>" 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 */
    
    	    /* ======== BOTTOM MENU ======== */
    ?>
    	</header><!-- #branding -->
    <?php
    	    get_template_part('nav','bottom');
        }	// end hide-header
    
        if (weaverii_getopt_checked('wii_header_first')) echo "<div id=\"wrapper\" class=\"hfeed\">\n";
    ?>

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • With Weaver II Pro you don’t need to put any Meteor Slides code in header.php. Have you had a look in the Weaver Forum? For example, have a look at this thread
    http://forum.weavertheme.com/discussion/2781/weaver-pro-ii-help-plugin-meteor-slideshow/p1
    (my posts in that thread give step-by-step instructions)

    Thread Starter edosango

    (@edosango)

    Gillian, Many thanks for your reply. I would appreciate your answer directed as though you were speaking with a six-year old.

    First of all, let me verify that I did the meteor slides correctly. JV’s video is very outdated.

    I first created the slides and then saved them PUBLISHED and ticking on a new title in new slideshow named “homepage”.

    Was this correct? as JV’s instructions did not even show a slideshow link in this video.

    By the way, under the assumption that I did activate different Weaver themes before the PRO. I deleted the theme and reinstalled a new PRO Theme and still had the problems below.

    Now I followed your instructions:
    Step 1 Under Weaver II PRO option I did not find the tick for a STANDARD Header image to tick. ONLY A MASTER TICK NAMED “HIDE HEADER IMAGE”?

    Step 2 There was no block entitled “Add new custom field”. so my question is do I have to save the tick 1 step to see a custom field block open up or do I have to create this block and then how do I do this?

    Thanks,
    ed

    Plugin Author Josh Leuze

    (@jleuze)

    Try testing these two things separately, add the slideshow to a page using a shortcode and make sure the slideshow works alright.

    Then go to Weaver II Admin > Advanced Options > HTML Insertion > Site Header Insert Code in the admin, and try just adding some text and make sure it shows up in the header.

    If both of those tests work, you should be able to add the shortcode to the theme options in that spot to add the slideshow.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Meteor Slides] Cannot find place to put the Slideshow codes in the header’ is closed to new replies.