Hi
Can I use the slide images as background images instead of images inside the "mslide" DIV?
Can the meteor-slideshow.phph file be modified that way?
Thanks
Dan
Hi
Can I use the slide images as background images instead of images inside the "mslide" DIV?
Can the meteor-slideshow.phph file be modified that way?
Thanks
Dan
Ok, I think I figured it out, it seems to be working, but would be glad to hear your insights:
<?php // Loop which loads the slideshow</p>
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, '' );
?>
<div class="mslide mslide-<?php echo $i; ?>" style="background:url(<?php echo $src[0]; ?>) no-repeat right top;">
<p> </div><!-- .mslide --></p>
<p> <?php $i++; ?></p>
<p> <?php endwhile; ?>Yeah, that's right, you just get the URL for the featured image and use inline CSS to set it as the background image.
Those paragraph tags could be a problem though, did they get added on accident?
Yes, the editor added them in.
Thanks
Dan
OK then that should work fine, I've done the same without any issues.
You must log in to post.