Forums

Shadowbox JS
Excluding an image? (5 posts)

  1. nat3
    Member
    Posted 2 years ago #

    I just posted this on the plugin's website, but then saw a message saying that support requests would be deleted and should instead be posted here. So here's my question:

    Is there a way to “exclude” an image from loading in Shadowbox when it’s clicked on?

    I want to use Shadowbox on all of the images on a certain page, except for this one image. This is because this one image is very large, and I want it to open in a new window when clicked on.

    I appreciate your help, thank you!

  2. Matt Martz
    Member
    Plugin Author

    Posted 2 years ago #

    6. If you are using using Shadowbox globally for all images but have an image you do not wish to use Shadowbox on use rel="nobox" in your image link.

    For example:

    <a href="http://example.org/image-thumb.jpg" rel="nobox"><img src="http://example.org/image-large.jpg" alt="Large Image" /></a>

    Specifying nobox keeps this plugin from adding shadowbox to the links.

  3. Thomas Griffin
    Member
    Posted 2 years ago #

    I have this same request, but for a different reason.

    I am using another script for an image gallery that uses a rel attribute. However, I cannot add multiple rel attributes because it messes up the image gallery script. (The image gallery does not use shadowbox). Is there another way to exclude images besides the rel attribute?

    Thomas

  4. Matt Martz
    Member
    Plugin Author

    Posted 2 years ago #

    @griffinjt: Not on a case by case basis. The only other option is to disable the automation on Settings->Shadowbox JS and then add the rel attribute for shadowbox manually to images you want shadowboxed.

  5. rafoarc
    Member
    Posted 1 year ago #

    Hello! I have a similar problem. And unfortunately the above doesn't help. I am using the f8 remixed theme from graph paper press. I can not find the <a href="http://example.org/image-thumb.jpg" rel="nobox"><img src="http://example.org/image-large.jpg" alt="Large Image" /></a> in the html of my post, it just says [gallery], so I am at a loss. Actually, I just installed the Multiple Post Thumbnails Plug In, because I want to have a different thumbnail for my archive and home page, so when I upload the new thumbnail through the feature of the plug in, it just gets added to the shadow box gallery... any ideas??
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic