• Resolved mtm

    (@flatpack-music)


    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, as per SLB’s title precedence, the {{item.title}} template tag will use other values as a fallback if a caption is not available.

    The template tag’s markup does not change depending on what value is used, so styling based on specific title values is likely not possible.

    Thanks for your feedback. More customization options are indeed planned for future updates.

    Thread Starter mtm

    (@flatpack-music)

    thanks for letting me know. this really would be useful in future versions please – some kind of checkbox system in the CMS would be ideal even. i find myself having to do so much by overriding the default CSS to get things looking right.

    we’ll find a workaround for now.

    Plugin Author Archetyped

    (@archetyped)

    Hi, you may want to consider creating a custom lightbox theme if you find yourself overriding a lot of CSS from an existing theme.

    Creating a lightbox theme is fairly straightforward, and a starter theme can be downloaded to help you get started.

    See SLB’s Theme documentation for tutorials on creating and customizing lightbox themes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Title, Caption, Alt styling’ is closed to new replies.