Hi @ferda2,
Please provide an example URL.
Thread Starter
ferda2
(@ferda2)
I have the website on localhost now.
Thread Starter
ferda2
(@ferda2)
<div class="<?php echo esc_attr($class); ?>">
<a href="<?php echo esc_url($full_image_url); ?>" title="<?php echo esc_attr($title); ?>">
<img src="<?php echo esc_url($full_image_url); ?>" alt="<?php echo esc_attr($alt); ?>" title="<?php echo esc_attr($title); ?>">
</a>
<?php if ($caption): ?>
<div class="pes-info-caption"><?php echo esc_html($caption); ?></div>
<?php endif; ?>
</div>
You need to add a CSS selector to the <a> element e.g.
add_filter( 'baguettebox_selector', function( $selector ) { return $selector . ',.my-gallery'; } )
And make sure the scripts and styles are loaded e.g. with this snipped in your functions.php:
add_filter( 'baguettebox_enqueue_assets', '__return_true' );