![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: Image Gallery
-
AuthorPosts
-
September 8, 2023 at 2:23 am #1418414
Is there a way to remove the image title from images in the masonry gallery?
https://app.screencast.com/GNMLpO4I5SWn1
Also, simple question but I can’t find the solution. How do I remove images from the image gallery?
September 8, 2023 at 7:58 am #1418420First : you want to get rid of the titles under the opend lightbox images – or do you like to have different Text there and not the image titles?
____Next: how do you insert images?
If you are knowing how to insert new images then you see those little crosses on already existing images in that gallery.:
hovering the “X” will turn that to a minus sign “-” click and the image is gone.
September 8, 2023 at 9:07 am #1418425Thank you. I was clicking the X but not the -.
In this instance I would like to remove the image titles in the lightbox. But in the future I may wish to change the title text.
September 8, 2023 at 9:23 am #1418427on default there should be a working choice for that under the option to choose the lightbox option:
but i recognized now that for galleries – that option has no influence – but test yourself on your gallery. On Masonry Gallery it works well to choose “no text”
if so we had to inform a Dev here on board – to fix it.
in the meantime you can set the mfp-title to display: none
div .mfp-title { display: none !important; }
September 8, 2023 at 9:33 am #1418429only for info to mods:
Funnily enough, I can find the instructions for this in gallery.php – and not in masonry-gallery.php.:
(they are in the helper for masonry: class-avia-masonry.php)$lightbox_title = $title; switch( $lightbox_text ) { case 'caption': $lightbox_title = ( '' != $caption ) ? $caption : $title; break; case 'description': $lightbox_title = ( '' != $description ) ? $description : $title; break; case 'no_text': $lightbox_title = ''; }
?
September 8, 2023 at 10:04 am #1418432ok i see:
the lightbox script got his titles from the img tag not the anchor !
so on line 784 (enfold 5.6.6) and on line 806:Guess title should be:
title="{$lightbox_title}"
i do not know how to handle the $prev_img_tag if we had to change that too.September 8, 2023 at 9:52 pm #1418511The No Text option worked fine for me Guenni. Thank you again for your assistance.
September 9, 2023 at 7:03 am #1418531Yes, for masonry gallery it works as it should – but for gallery there is no response to the choices.
September 9, 2023 at 11:35 pm #1418608Hi,
Glad Guenni007 could help, thank you Guenni007, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Masonry Gallery – Remove title’ is closed to new replies.