I was asked by a user about CaptionPix’s image link parameter – he wanted to know if there was any special order of parameters required for the image link to work. The answer to that is no. There is no special order. This post shows how to use it to link your image to a URL of your choice.
What If I Don’t Specify An Image Link?
If you don’t specify an image link parameter, your image will simply link to itself. That means if someone clicks your image, the image will display at its original size on a web page by itself. This isn’t a very attractive way to display the image and we will probably update the plugin at a later date to allow for lightbox view of the image, but for now it just links to itself.
How To Specify An Image Link
However, if you’d like the image to link to a specific URL you can do this by specifying the image link parameter.
For example, the image shown here on the left of a beach in the Bahamas, links through to the Wikipedia page for Harbour Island.
An example of how to do this would be as follows (but please don’t put a space before the word captionpix as I have below. I did that so that the code would fail to render an image so that you could see the code.
[captionpix imgsrc=”http://yoursite.com/your-image.jpg” captiontext=”Your caption” imglink=”http://www.bbc.co.uk/”]
In the above example, the image when clicked would link to the BBC website.