Support

Account

Home Forums Add-ons Gallery Field Need caption instead of Alt Description and next/prev nav on Fancybox popup

Unread

Need caption instead of Alt Description and next/prev nav on Fancybox popup

  • Hi!

    Right now, I’m just getting the alt description showing up underneath the Popup/Modal image. And the caption showing up under the thumbnail.

    I’d like to remove caption under thumbnails and have it show up under the Popup/Modal image. I’d also like to have next and previous arrows.

    I have the Fancybox Light plugin installed and I don’t have Previous and Next arrows.

    Here’s my code:

    <div class="sl-gallery-single">
      	<div class="row gallery-container">
                        <?php $gallery_images_images = get_field( 'gallery_images' ); ?>
                            <?php if ( $gallery_images_images ) :  ?>
                                <?php foreach ( $gallery_images_images as $gallery_images_image ): ?>
                                <div class="flex-item gallery-image">
                                    <a href="<?php echo esc_url( $gallery_images_image['url'] ); ?>">
                                        <img src="<?php echo esc_url( $gallery_images_image['sizes']['medium'] ); ?>" alt="<?php echo esc_attr( $gallery_images_image['alt'] ); ?>" />
                                    </a>
                                    <figcaption><?php echo esc_html( $gallery_images_image['caption'] ); ?></figcaption>
                                </div>
                                <?php endforeach; ?>
                            <?php endif; ?>
                    </div>
                </div>
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.