Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #4985
    Vicki Mills

    I’m using Swipebox and if I put in a caption and alt-text for an image, the text that shows at the top of the lightbox is the alt text. Why? I would think the caption was the caption. I’d like to include alt text for images but don’t want it to display. Is this a bug, or have I missed something somewhere?

    sara amato

    Same problem here – tried this in the child-theme style.css as I’d be happy just to have truncated text with an ellipsis, but no luck.

    #swipebox-caption { text-overflow: ellipsis; }


    For my galleries, the alt text were also displayed instead of the captions. This happened for me with all of the scripts except for prettyPhoto. I wanted to use Nivo. I fixed it for Nivo, probably can do the same thing for Swipebox.

    In the lightbox javascript find where the title is set then change dom selector to look for and use the “alt” attribute of the first child element. May need to pretty format to find, I used Firebug on Firefox for this.

    For Nivo, open the javascript and find two instances of:


    And replace with:



    Swipebox is a jQuery “lightbox” module for work area, portable, and tablet. I used it on a ca.bestessays.com review website. The coding of this swipe box is very complicated but after many practices I got the success to make it.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.