Gallery Addon - How To Show Image Title? - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Gallery Addon - How To Show Image Title?

TomaszGrzechnik

TomaszGrzechnik

SP Page Builder 8 months ago

Hi, Is it possible to show item title or ALT text on the bottom of image in gallery addon? I have only for example 1/10 in the right bottom corner of image. It would be nice to show real people watching gallery on my site image description not only for robots as ALT TEXT :)

0
8 Answers
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 months ago #198719

Hi

Is this solved now? If yes, you can then close this post by accepting the answer.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 8 months ago #182751

Hi there!

Thanks for contacting us.

Are you talking about the gallery addon of the SP Page Builder? I am not sure which gallery it is and where the image title should be visible...

With the gallery addon the image title can not be shown on the image.

You may try the SP Easy Image Gallery to see if it serves your purpose!

https://www.joomshaper.com/joomla-extensions/sp-easyimagegallery

Would you please clatify with screenshots and site link?

Best Regards

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 8 months ago #182752

Hi Tomasz,

right now it request addon code (site.php file) customization. Adding line to display text taken from Alt.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 8 months ago #182757

Here is unofficial code for site.php from gallery addon

in the new line 73 copy & paste:

$output .= '<div>' . $alt_text . '</div>';

OR

$output .= '<div class="sppb-text-center">' . $alt_text . '</div>';

info_3152_2025.png

and text from ALT will be displayed under the image.

info_3153_2025.png

0
TomaszGrzechnik
TomaszGrzechnik
Accepted Answer
8 months ago #182763

Mehtaz Afsana Borsha - I'm talking about gallery addon in SP Page Builder not SP Easy Image Gallery.

Thanks Paul for tips, but in your solution ALT TEXT is shown in main gallery view. I need to show only ALT TEXT after click and enlarge image like in SP Easy Image Gallery. Best solution will be when after hover on image is shown ALT TEXT, and after Click and enlarge TITLE on the lower part of image, not bottom image.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 8 months ago #182765

Yeah I got it. As per my knowledge there is no default option to do that in gallery addon. You can get this similairty on SP Easy Image Gallery.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 8 months ago #182774

In that case changes must be added here : \assets\js\jquery.magnific-popup.min.js

and I am afraid that I cannot help more.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 months ago #198735

Thanks for accepting the answer.

0