-
-
Hello,
I have a question regarding image alt, title and caption properties in “Gallery Grid” mode on Portfolio Item. I have added Titles in “Add/Edit Slides” but I can’t figure it out how to set it up to work when in browser.
What I would like to have is a title / caption and alt attribute on each image when in gallery grid mode, obviously for seo reasons. So when a user hovers over an image title / alt displays.Am I missing something? Thank you in advance for prompt reply and help.
Luka
-
Anybody from support? I would be grateful for any reply regarding my question.
Thank you.
Luka
-
Is there any other way to solve this problem other than modifying title attr in “register_shortcodes.php”?
$output .= ‘ title=“”>’;I would really appreciate any feedback!
Thanks.Luka
-
Hello,
Sorry for the late reply.
Please go to file include/view/portfolio/single-gallery.php and find these lines:<a class="lightbox-gallery" href="<?php echo esc_url($slide['image']) ?>" title=""> <div class="visual lightbox"> <img src="<?php echo esc_url(codeless_image_by_id($slide['attachment_id'], 'port3', 'url')) ?>" alt=""> <span class="moon-zoom"></span> </div> </a>Replace with these:
<a class="lightbox-gallery" href="<?php echo esc_url($slide['image']) ?>" title="<?php echo $slide['title'] ?>"> <div class="visual lightbox"> <img src="<?php echo esc_url($slide['image']) ?>" alt="<?php echo $slide['description'] ?>"> <span class="moon-zoom"></span> </div> </a>Best regards!
-
Thank you for your support. Is there any way to use shortcode “tooltip” into the latter .php? So that the images would display title tag as tooltip?
Best regards,
Luka
-
-
You must be logged in to reply to this topic.