WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] very strange, plugin won't appear in header.php unless i put text above (5 posts)

  1. sabster
    Member
    Posted 1 year ago #

    Hey JLeuze,

    Your plugin is *exactly* what I was looking for. However, I'm having a very strange problem.... I can only get your plugin to appear for me when I put text above the php tag.

    For example... Here's some of my header.php (I added some code from the above navigation in case it did something to it...

    <div id="wrapper" class="hfeed">
    			<div id="branding" role="banner">
    				<?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>
    				<<?php echo $heading_tag; ?> id="site-title">
    					<span>
    						<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
    					</span>
    				</<?php echo $heading_tag; ?>>
    				<div id="site-description"><?php bloginfo( 'description' ); ?></div>
    
    				<!-- where header was -->
    			</div><!-- #branding -->
    
    			<div id="access" role="navigation">
    			  <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
    				<div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    				<?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    				<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    			</div><!-- #access -->
    
    	a
    	<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>
    
    	<div id="main">

    Now, right now you see where the "a" is? When I delete this letter "a", the slideshow completely disappears from the website! It goes away and only when I type some letters there will the slideshow appear. I tried putting the thing in a div also, but it won't work. I may just push the margin up to cover the letters just to make it show lol....

    Any ideas? And sorry, this is on my local machine, but I can provide more info if need be.

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

  2. sabster
    Member
    Posted 1 year ago #

    here's an example image of a letter above the slide show, if i erase the letter.... the slideshow will dispear... this seems very, very weird.... lol.

    http://i.imgur.com/OZaMp.png

  3. sabster
    Member
    Posted 1 year ago #

    found another hint as to what is going on, looked at the firebug code and for some reason it looks like the code is being placed ABOVE the navigation even though the div is BELOW it.... no idea why this is happening. here's the picture of it. you can see the highlight of where the slideshow is trying to go above the navigation:

    http://i.imgur.com/HmVGx.png

  4. sabster
    Member
    Posted 1 year ago #

    okay got it to work by adding a div aroudn the slideshow and adding the css attribute of:

    clear:both

    so it looked like this if anyone has the same problem:

    <div style="clear:both;">
    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>
    	</div>

    cheers! thanks for the great plugin!

  5. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, thanks for posting your fix, you can actually put the whole clear div first and then the slideshow like this:

    <div style="clear:both;"></div>
    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); } ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.