Support » Plugin: Simple Lightbox » Supress title but keep caption

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am trying to do the same. Most of my file names are either cryptic or for internal organisation (there are a few of us using the site). I do not want to display something like IMG_0123.JPG in the lightbox pop-up but use only description.

    It seems that setting up a child theme for the theme used by
    Simple Lightbox does the trick:
    https://wordpress.org/support/topic/caption-vs-filename
    https://wordpress.org/support/topic/remove-title-16

    Will try that as soon as I find some time 🙂

    Plugin Author Archetyped

    (@archetyped)

    @maksibec: Indeed, you are correct. To only display the caption (when available), you need to use the {{item.caption}} template tag instead of {{item.title}} in the theme’s template.

    Further resources:

    Thank you for the hints! I have downloaded the sample theme from your site, the layout.html was empty so I pasted the sample code from your site (from section “It’s just HTML”) but without the item.title span-bit.

    However, what next? Which files (in which directories) do I have to edit with what code so that I can choose the theme in my SLB settings? Thanks!

    Plugin Author Archetyped

    (@archetyped)

    Have you installed and activated the sample theme? It should be added to the site’s plugins directory and activated via the site’s admin.

    Once activated, it should be listed in the “Themes” section of SLB’s settings page.

    Thanks for getting back to me! I was busy so I only now found time again. I installed the sample theme, however I then suddenly had a lot of back forward start diashow text displayed in the SLB frame around the picture, too.

    What I did now was to simply delete the span with the item.title bit from baseline/layout.html. I realize I will have to repeat that after each update, but that is okay for me: even I can do that, it is quick & easy, and hey, it works! 😉

    Plugin Author Archetyped

    (@archetyped)

    If it works for you, I’m happy 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Supress title but keep caption’ is closed to new replies.