[Plugin : ZenphotoPress] How to make custom links to images
-
Hi,
First, thanks for this wonderful plug-in !When I insert an image into an article, the thumbnail is fine but I would like to custom the link to the image. Through the “Do you want to link it?” > “Custom URL” option, I can do that manually. But I am looking for a way to add a parameter automatically at the end of my links.
What I want exactly is to add &w=numberofpixel&h=numberofpixel on each picture’s link so that the link aims to a resized picture and not to the original (which has a too high resolution).
Result expected :
<a rel="lightbox-2" href="https://www.mysite.fr/zenphoto/zp-core/i.php?a=italie&i=image.jpg<strong>&w=800&h=350</strong>"><img class="ZenphotoPress_thumb " title="image" src="https://www.mysite.fr/zenphoto/zp-core/i.php?a=italie&i=image.jpg&w=300&h=200" alt="2010-01-25 16.39.14" /></a>
Is there a way to do that ? Quite a newbie in php and its syntax, I don’t understand how these links are generated (in which file, on which line, classes.php ?)
Thanks in advance,
BriceConfig : WordPress 2.9.1 / ZenPhoto 1.2.9 / ZenphotoPress 1.7
- The topic ‘[Plugin : ZenphotoPress] How to make custom links to images’ is closed to new replies.