WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Coop920
    Member
    Posted 8 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'])) : ?>
                    <div>
                     <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>
                    </div>
                <?php else :?>

    What am I missing here?

    Thanks,

    Josh

    http://wordpress.org/plugins/cnhk-slideshow/

  2. Rija Rajaonah
    Member
    Plugin Author

    Posted 8 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.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.