If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
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?
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="" />
Is there no way to do that automaticaly? I know that a plugin for WordPress can do that.
Ok, I found this plugin: http://wordpress.org/extend/plugins/add-lightbox-title/
You need to write your images in a link though – otherwise the lightbox can’t open it – example code:
<a href="http://dl.dropbox.com/u/2025095/alwaysonline/avisio/small1.jpg"><img class="alignleft" title="Image Title" src="http://dl.dropbox.com/u/2025095/alwaysonline/avisio/small1.jpg" alt="" width="200" height="130" /></a>
The topic ‘Problem with PrettyPhoto – no automatic rel=lightbox’ is closed to new replies.