Hi!
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?
Problem with PrettyPhoto - no automatic rel=lightbox
7 posts from 2 voices-
Posted 2 years ago #
-
Sorry, link to my test page: http://zlataleta.com/test/testna/
Posted 2 years ago # -
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
Posted 2 years ago # -
Is there no way to do that automaticaly? I know that a plugin for Wordpress can do that.
Posted 2 years ago # -
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 Dude
Posted 2 years ago # -
Great, thanks!
Posted 2 years ago # -
No problem.
The Dude
Posted 2 years ago #
Reply
You must log in to post.














