Hi, caption for lightbox – multiple images show only filename, is there a way to show description instead? I do not want to show the filename of a picture but only the descriptions, that should be the caption not the name of a picture. Is this possible?
So in order for me to not have the title of a picture there i will need to edit 150+pictures and 12 portfolios? All i want is to show the description and not the title in one of these portfolio.
If i enable caption in the laborator lightbox option it shows the name of all the pictures in all the portfolio item. So my question is, is there a way to show caption for only one of my portfolio or is there a way to get rid of the name of the picture with CSS?
I am using caption under the pictures not on hover.
If the captions are shown on mobile, then add !important rule to property:
.lg-sub-html h4 { display: none !important; }
As for caption position, this is not something that is supported by Light Gallery plugin, the containers are separated and CSS cannot be used to put it below the image, I am sorry about this.
Hi, caption for lightbox – multiple images show only filename, is there a way to show description instead?
I do not want to show the filename of a picture but only the descriptions, that should be the caption not the name of a picture. Is this possible?
Thank you
Hi photomassimo,
I have recorded a video to show you how to assign title/description for lightbox items:
https://d.pr/v/i5a96D
I hope this helps you.
Hi Arlind,
So in order for me to not have the title of a picture there i will need to edit 150+pictures and 12 portfolios? All i want is to show the description and not the title in one of these portfolio.
If i enable caption in the laborator lightbox option it shows the name of all the pictures in all the portfolio item. So my question is, is there a way to show caption for only one of my portfolio or is there a way to get rid of the name of the picture with CSS?
I am using caption under the pictures not on hover.
Thank you, i hope i explain it better now.
Massimo
Hi Massimo,
You can add this custom CSS to only hide the title from lightbox:
.lg-sub-html h4 { display: none; }Hiding the title will do the work for you I guess? Please let me know.
Yes this work, i added the css and turn on caption and now i am using the caption only.
Is there a way to put the caption directly under the picture? right now they are pretty far down from the pics.
Thank you
Massimo
And also, just noticed, this css
.lg-sub-html h4 { display: none; }doesn't work for mobile, how do i apply this script to mobile version?
Thank you again
Massimo
Hi Massimo,
If the captions are shown on mobile, then add !important rule to property:
.lg-sub-html h4 {display: none !important;
}
As for caption position, this is not something that is supported by Light Gallery plugin, the containers are separated and CSS cannot be used to put it below the image, I am sorry about this.
Hi Arlind it still doesn't work on mobile.
I cleared the cache and still the title of the pics are there, also i downloaded chrome for iphone to make sure but they are still there.
.lg-sub-html h4 { display: none !important; }this is what i added in the CSS
Thank you
Massimo
Hi Massimo,
There was a CSS error in Custom CSS (a missing closing bracket } so I have managed to fix it).
Now captions are not shown in mobile as well:
(view large image)
thank you so much Airlind.
Best
Massimo
Hi Massimo,
I am glad that it worked for you.
Will close this ticket now.