Title, Caption, Alt styling
-
I am trying to use CSS to target the image data that is displayed in SLB galleries to quite a specific level of detail. What I am after is for the image caption (that is, the text entered in the “caption” box associated with the image int he WordPress media library) to be displayed if there is one, but for no other info to be displayed alongside or instead of it.
It appears that if no caption is attached to the image the title is automatically displayed in its place, and wrapped in the same span (.slb_template_tag_item_title), so although I can hide the status and description it seems impossible to show only the caption or nothing at all. If i hide the title, the caption goes too.
Longer term it would be great to see these options (e.g. as checkboxes for ‘show title’, ‘show caption’ etc.) in the settings for the plugin, but for now can you help me by telling me if there are more specific selectors i can use to hide everything apart from the captions via CSS please?
Thank you.
- The topic ‘Title, Caption, Alt styling’ is closed to new replies.