WordPress.org

Forums

WP jQuery Lightbox
[resolved] supress 'caption' field in popup? (4 posts)

  1. scwtenor
    Member
    Posted 3 years ago #

    hi, I have different content in the 'title' and 'caption' fields for each image in my gallery, and both of those fields are appearing in the popup. I would like to know how to suppress the 'caption' field in the popup. so, to be more clear: I want the caption to appear under the thumbnail in the gallery, but only the 'title' to appear under the photo in the lightbox. I would use CSS "display: none;" but it looks like the title/caption part of the popup is styled with a span. perhaps there is a line of php I could comment out? thank you!

    http://wordpress.org/extend/plugins/wp-jquery-lightbox/

  2. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    You only need to do two edits:

    http://pastebin.com/nG97yBEZ

    I'll add specific CSS selectors in the next release so you can do the CSS-hack instead.

  3. ulfben
    Member
    Plugin Author

    Posted 3 years ago #

    I added captionText and titleText to the development version. Add selectors to your theme's CSS-files (wp-jquery-lightbox css is replaced on every plugin update!)

    The selectors in work:

    #captionText{
    	color:red;
    }
    
    #titleText{
    	color:blue;
    }

    To avoid name collisions you might want to specify part of the hierarchy:
    #lightbox #captionText {}
    #lightbox #titleText {}

    Works the same, just more specific.

  4. scwtenor
    Member
    Posted 3 years ago #

    thank you!! very prompt and helpful replies, just what I needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP jQuery Lightbox
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic