• Resolved NobilKnight

    (@nobilknight)


    hi JLeuze .. first of all greetings for this Great plugin

    2nd. I have a wordpress website ” http://www.ezbetgerges.com

    I want to make the edit of adding the title of the post or the page .. but I need this title to be linked to the post too .. not only a text
    what is the code I have to use instead of the code you put in the “customizing the slideshow template” section of your very useful site ?
    this is the code I use ” <p><?php the_title(); ?></p> “

    and another question .. can the linked title only shown while hovering the slide and then disappear ?

Viewing 1 replies (of 1 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Instead of using the example from the documentation:

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

    You would use this to make it a link, just like how the link for the slide image is done:

    <?php // Adds slide caption with Slide URL link
    
    if ( get_post_meta( $post->ID, "slide_url_value", $single = true ) != "" ): ?>
    
    	<p><a href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
    
    <?php // Adds slide caption without Slide URL link
    
    else: ?>
    
    	<p><?php the_title(); ?></p>
    
    <?php endif; ?>

    You can use CSS to hide and reveal the caption, just like how the navigation is done, check out these rules starting on line 71 of meteor-slides.css:

    body .meteor-slides ul.meteor-nav {
    	display: none;
    	*display: block;
    	_display: block;
    }
    
    body .meteor-slides:hover ul.meteor-nav {
    	display: block;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘title with a link to the slide post’ is closed to new replies.