Hi there.
I have two questions about Masonry Gallery using the lightbox:
1. Is there any way to hide the image counter and total number of images on the bottom right of the image in the lightbox?
2. Is there any way to show the image caption instead of the image title on the bottom left of the image in the lightbox?
Thank you very much in advance.
Hey stweb,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan Shannon
Hi,
Thanks for the update.
1.) Use this css code to hide the counter.
.mfp-counter {
display: none !important;
}
2.) This is possible but you have to set the image caption as title. You can do that on the Media > Library panel. Or edit the config-templatebuilder > aviashortcodes > av-helper-masonry.php file, look for this code around line 352:
$title = trim( esc_attr( get_the_title( $thumb_ID ) ) );
Replace it with:
$attachment = get_post( $thumb_ID );
$title = trim( esc_attr( $attachment->post_excerpt ) );
It’s going to set the image caption as the value of the title attribute.
Best regards,
Ismael