WordPress.org

Ready to get started?Download WordPress

Forums

Auto ThickBox Plus
[resolved] Not working on small windows (8 posts)

  1. freshcreate
    Member
    Posted 1 year ago #

    If the window is too narrow or short, the jpg itself is opening instead of the thickbox. Not sure what it is about my site that's making this happen? Tried in Chrome and FF (windows).

    Any advice is appreciated!

    http://wordpress.org/extend/plugins/auto-thickbox-plus/

  2. attosoft
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for confusing you. It was caused by temporary workaround for small screen. ThickBox was disabled on smaller screen than 480px. However I removed the code from latest version because I added mobile support for small-screen devices. ThickBox will be enabled again by reinstalling the plugin.

    See this topic for more information.

  3. freshcreate
    Member
    Posted 1 year ago #

    Ah, it's perfect now. Thanks for the quick response.

    I have another question, though the answer is probably very obvious so I feel silly opening a new thread for it:

    Can't figure out how to make a title appear on the thickboxed image. Caption is working fine using the title attribute in <a>, but I need both a caption and a title, and the title won't show up no matter what I try.

  4. attosoft
    Member
    Plugin Author

    Posted 1 year ago #

    "Title/Caption" used in ThickBox is different from "Title/Caption" used in WordPress.

    In ThickBox, "Caption" is a text under the image, and "Title" is a text in the title bar that is shown when opening inline/iframe/ajax content. See Examples in thickbox.net.

    In WordPress, "Caption" and "Title" is specified via admin screen. "Caption" is set as a text in p.wp-caption-text or div.wp-caption-text element, and "Title" is set as a@title or img@title attribute value.

    ThickBox title/caption is retrieved in specified order at "Text - Title/Caption" options. You want to show both image/link title and image caption?

  5. freshcreate
    Member
    Posted 1 year ago #

    I see. In that case what I'm trying to do is have 2 titles - one above the thickboxed image and one below it. No captions for the thumbnail link would be necessary.

    Would this be possible with some code adjustment or clever trick?

  6. freshcreate
    Member
    Posted 1 year ago #

    Any word on if this is in the realm of possibility for this plugin? Thanks

  7. attosoft
    Member
    Plugin Author

    Posted 1 year ago #

    In my understand, you want to show two titles as prettyPhoto script.

    Most Lightbox plugins can show only one title that is either a@title or img@title or img@alt attribute value. If you want to display two titles in different places, you need to modify JavaScript code in Lightbox plugins, or use another scripts such as prettyPhoto.

    <a href="" title="a@title">
        <img src="" title="img@title" alt="img@alt" />
    </a>
    
  8. freshcreate
    Member
    Posted 1 year ago #

    Thanks! That worked. Appreciate the info.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic