Thread Starter
hcj15
(@hcj15)
I just noticed that if I link to the image with no variables in the hyperlink it will display the image.
[wp_colorbox_media url="http://url" type="iframe" hyperlink="http://url/wp-content/uploads/2015/01/image.png"]
What I would like is to be able to make it into a roll over, how can I do this? I have an image class for mouseover, could your script accept custom in the hyperlink section?
<img class="mouseover" title="title" src="http://url/wp-content/uploads/2015/01/imagerollover1.png" alt="title" oversrc="http://url/wp-content/uploads/2015/01/imagerollover2.png" />
You can embed it as HTML instead of shortcode. For example:
<a class="wp-colorbox-iframe" href="http://url"><img class="mouseover" title="title" src="http://url/wp-content/uploads/2015/01/imagerollover1.png" alt="title" oversrc="http://url/wp-content/uploads/2015/01/imagerollover2.png" /></a>
Thread Starter
hcj15
(@hcj15)
many thanks that worked 🙂
can I set the size of the iframe that is loading ?
Unfortunately it comes from the wp-colorbox.js file. Currently the width and height are set to 80%.