I am using the zip file download and the Image Info link does nothing when clicked.
Comparing the html source of my installation to someone else's that has modal window popup on click, I see that a couple of lines are missing in mine.
Here are the lines from the working site:
<script type="text/javascript">var blogrelurl = "/themes/stopdesign_custom";</script>
<link rel="stylesheet" href="
http://examplesite.com/zenphoto/zp-core/js/colorbox/colorbox.css" type="text/css" />
<script src="
http://examplesite.com/zenphoto/zp-core/js/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
Here are the lines in my site:
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="/zenphoto/themes/stopdesign/css/master.css" />
<script type="text/javascript">var blogrelurl = "/zenphoto/themes/stopdesign";</script>
On both sites these lines come next:
<script type="text/javascript">
// <!-- <![CDATA[
$(document).ready(function(){
$(".colorbox").colorbox({
inline:true,
href:"#imagemetadata",
close: 'close'
});
$("a.thickbox").colorbox({
maxWidth:"98%",
maxHeight:"98%",
close: 'close'
});
});
// ]]> -->
I am trying to figure out which file is missing the code so I can replace it. Because I have always used the zip file, this time I downloaded and opened the tar file, thinking perhaps the tar file may have the code in it.
Comments
I downloaded and installed the latest version today, but the previous installation I made for another site a couple of months ago has the same issue with the image info link not opening a modal box.
It would be OK with me to just remove the image info link. Which file may I find that in?
Here is the site I'm working on:
http://alanparkerauctions.com/zenphoto/
(I have donated to zenphoto previously and will do so again. Gorgeous piece of work.)
Anyway, if the colorbox does not open up when you click the link on an unmodifed version of the theme the most likely culpret is a javascript conflict somewhere.
The theme is not coded to work without the colorbox assist. The div where the image metadata is is styled `display:none;` and shown by the colorbox javascript. You could remove that styling and the data would show always on the page.