Jump to content

Image in Thickbox in CMS pages


Recommended Posts

Hi there,

 

I have a CMS page where I want, when clicked, an image to appear larger in thickbox much like it does in the product pages when you click 'View Full Size'.

 

Is this possible and easily implemented?

 

I have tried just putting class="thickbox" in the image desc but doesnt work, like this:

 

<img class="thickbox" style="vertical-align: middle;" src="http://u.r.l/image.png" alt="Image Desc" width="535" height="273" />

Link to comment
Share on other sites

Try adding HTML like this

<a href="http://www.url.com/larg-image.jpg" rel="other-views" class="thickbox " title="Add titler"> <img id="thumb_1" src="http://www.url.com/thumb-image.jpg" alt="Add alt tag" height="60" width="60" />

 

If you do not have a seperate thumbnail image you can re-use the main one, it will get resized.

Edited by Guest (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...