Home › Forums › Front-end Issues › How can I get the caption of the used image in an picture element › Reply To: How can I get the caption of the used image in an picture element
So if you’re using different images for different screen sizes, then you want to show the right caption.
I think using media queries would give more control but you could look at the Bootstrap Display Property
Simply add the necessary classes to show/hide the caption based on the screen size.
But, I think media queries may be more accurate – just wanted to provide options.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.