Ready to get started?Download WordPress


Cnhk Slideshow
Display Title of Slide below Slide (2 posts)

  1. Coop920
    Posted 9 months ago #

    Hi there,

    I really am enjoying your plugin for the simplicity of creating a responsive slideshow. However, I'm trying to figure out a way to output the slide's title as a caption on the front end. I'm quite surprised that when trying to output anything inside of the foreach loop, inside the template slideshow.php, it wont actually output!

    <?php if ('No Link' == rawurldecode($options['slides'][$slide]['link'])) : ?>
                     <img class="cnhk-slide" alt="" title="<?php echo esc_attr(stripslashes($options['slides'][$slide]['title'])) ?>" src="<?php echo esc_url(CNHK_UPLOAD_URL . $options['slides'][$slide]['src']); ?>" />
                     <small><?php echo esc_attr(stripslashes($options['slides'][$slide]['title'])) ?></small>
                <?php else :?>

    What am I missing here?




  2. Rija Rajaonah
    Plugin Author

    Posted 9 months ago #

    Hi Josh,

    It's because this part of the file is used only when slides are not pre-loaded (the delay in the slideshow setting is set to 0). Otherwise images are loaded via javascript and inserted into the page after all slides are loaded or after the defined delay.
    But inserting additional html code (even by javascript) will require to modify/add some css rules.

    I mean to add the overlay functionality as shown at the Cycle2 plugin's website. But I just don't have the time to do it for now. I guess I can achieve it this month but I can't be more accurate. Sorry.


You must log in to post.

About this Plugin

About this Topic


No tags yet.