Archived topic
Image gallery captions (mobile)
9 replies · Started by Ken on June 9, 2016
I have a gallery with 5 images on a page, each with captions. Captions show fine in a non-mobile view but are missing on mobile
Can you link me to the page?
Tom,
Here is the link. Good on desktop, doesn't show responsively on mobile. The only type of caption I can get to show on mobile is to use the pop-over which is tough on mobile.
Thanks,
Ken
Your boldgrid-gallery plugin is hiding them on mobile.
To reverse this, add this CSS:
@media screen and (max-width: 568px) {
body .wc-gallery .gallery-caption {
display: block;
}
}
Thanks, Tom. New at this. Can you direct me to a link for the optimal way to add this to CSS. I assume I would not want to add this to one of the existing PHPs (or the bold grid gallery plug-in) as it would get clobbered if I update the plug in version later.
This might help: https://generatepress.com/knowledgebase/adding-css/
Let me know :)
Added the CSS to the page in question and also tried under Customize (Appearance) and still can't see the captions on mobile
Sorry about that - I just adjusted the CSS above, it should work now.
All good, thanks Tom!
You're welcome :)
