Hi!
I'm trying to make colorbox work on both the image and exifdata in a copy of the default theme in 1.2.9-trunk.
I have looked at the Zenpage theme where it's used and working fine, so I thought I just copy some code from there to the default theme. I get the box working for both but the exif data box has no text at all. It starts at default size and then shrinks to nothing probably because there's nothing to show.
If I however comment out "<link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />" in image.php the box works fine for exifdata...
I guess there's something colliding somewhere, but I can't figure it out.
Any help would be appreciated !
Comments
That CSS link has nothing to do with the colorbox.
I'm stumped. The head section of my image.php is exactly the same as the other default themes included in 1.2.9 I used for reference which have the exifdata colorbox working. The only time I get it to work is when I omit my theme's style sheet as Pischla mentioned above.
Thanks for any assistance, you have a great program!
http://www.kieranoshea.com/gallery/jog-race-guernsey-aug-11/IMG00378-20110826-1926.jpg.html
a) Enable the colorbox plugin and allow it for the theme page needed
b) Add the actual js calls on that theme page. It is not included automatically as it can be configured in dozend ways and it will never fit anyone.
EDIT: Sorry, should have followed the link first. Something with your HTML/CSS is maybe not right, probably the width/height so the colorbox collapses.
`#imagemetadata table {
text-align: left;
line-height: 1em;
border: 1px solid #ccc;
position: absolute;
top: 2em;
right: 0px;
background-color: #fafafa;
}`
to be changed to
`#imagemetadata table {
text-align: left;
line-height: 1em;
border: 1px solid #ccc;
top: 2em;
right: 0px;
background-color: #fafafa;
}`
Note the removal of the position attribute.
Hope this helps someone!