• nat3

    (@roboticsguy)


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matt Martz

    (@sivel)

    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="https://example.org/image-thumb.jpg" rel="nobox"><img src="https://example.org/image-large.jpg" alt="Large Image" /></a>

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

    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

    Plugin Author Matt Martz

    (@sivel)

    @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.

    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="https://example.org/image-thumb.jpg" rel="nobox"><img src="https://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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Shadowbox JS] Excluding an image?’ is closed to new replies.