Make Jetpack Slideshow Block Images Clickable to View Full Size

Author:

Date:

Add this code to your child themes functions file to make your Jetpack slideshow block images clickable so you can view the full size of each slide.

add_action(‘wp_footer’, ‘inline_slideshow_script’, 20); function inline_slideshow_script() { ?> jQuery(document).ready(function ($) { $(“.wp-block-jetpack-slideshow_image”).each(function () { var imageSrc = $(this).attr(“src”); $(this) .wrap(”); }); });

This is the first part of the article

Make Jetpack Slideshow Block Images Clickable to View Full Size

wpforms banner