Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #931


    I’d like that all linked images in posts open in prettybox. The first image is allways the featured image and that one is ok, but all other images don’t get the ” rel=’lightbox’ ” attribute.

    Could someone take a look and give me a hint, please?


    Sorry, link to my test page:


    You need to add the rel=’lightbox’ attribute manually. When you add an image with your html editor to your page use something like:

    <img src="your-image.png" rel="lightbox" alt="" title="" />

    The Dude


    Is there no way to do that automaticaly? I know that a plugin for WordPress can do that.


    Ok, I found this plugin:

    You need to write your images in a link though – otherwise the lightbox can’t open it – example code:

    <a href=""><img class="alignleft" title="Image Title" src="" alt="" width="200" height="130" /></a>

    The Dude


    Great, thanks!


    No problem.

    The Dude

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Problem with PrettyPhoto – no automatic rel=lightbox’ is closed to new replies.