WordPress.org

Ready to get started?Download WordPress

Forums

Meteor Slides
[resolved] How to show caption on image ? (4 posts)

  1. nepal-kathmandu
    Member
    Posted 1 year ago #

    HI I have used meteor slides and so far I like everything about it. I want to add the title to the slides. I tried to follow several tutorials but still I am not able to figure out completely. I followed the instructions on http://jleuze.com/plugins/meteor-slides/customizing-the-slideshow-template/ and http://jleuze.com/plugins/meteor-slides/customizing-the-stylesheet/. By using the custom css I was able to use left and right navigation on all the time. But still I am not able to use the title of the slide overlap on the image. My website is http://www.nepal-kathmandu.com
    I have two slideshows. To my surprise both are showing the same name "Pashupatinath" over and over again. I don't know where to change that. Thanks.

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

  2. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    It looks like the title isn't inside the slides, make sure that you've placed it inside the slide container, like this:

    <p><?php the_title(); ?></p>
    </div><!-- .mslide -->
  3. nepal-kathmandu
    Member
    Posted 1 year ago #

    Awesome,

    Thanks so much. I think I read somewhere to put just above this code
    </div><!-- .meteor-slides -->

    Putting the code as you suggested shows the slide title on the slide. Can I show the links also ?

  4. Josh Leuze
    Member
    Plugin Author

    Posted 1 year ago #

    Instead of using this:

    <p><?php the_title(); ?></p>

    Use this:

    <a href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><p><?php the_title(); ?></p>

    That assumes that each slide has an image. If only some slides have images, you have to add the link conditionally, just like the link is added to the slide images in the slideshow template.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic