zpupster Posted December 3, 2014 Posted December 3, 2014 hello, on product_info page clicking thumbnail so image will enlarge with colorbox. i can not put a caption for the image. If i put in text in the html popup, the text will show but the photo will not, removing text shows photo only. http://www.sympacare.com/bsosc234/product_info.php?cPath=22_159&products_id=1033 and text only http://www.sympacare.com/bsosc234/product_info.php?cPath=22_158&products_id=1027 testing for now, How are is everybody handling this?? craig
burt Posted December 3, 2014 Posted December 3, 2014 The HTML box is not for captions, it is for (eg) embedding a youtube video. There is no inbuilt capability for image captioning.
zpupster Posted December 4, 2014 Author Posted December 4, 2014 do not put text in HTML box!! there is a script that was not on my product_info.php page, but in the plainJane osc234. add before <?php echo stripslashes($product_info['products_description']); ?> and below is the line that will add the caption to the image in colorbox. title: '<?php echo $product_info['products_name']; ?>', <script type="text/javascript"> $(function() { $('#piGal').css({ 'visibility': 'hidden' }); $('#piGal').photosetGrid({ layout: '<?php echo $photoset_layout; ?>', width: '250px', highresLinks: true, rel: 'pigallery', onComplete: function() { $('#piGal').css({ 'visibility': 'visible'}); $('#piGal a').colorbox({ maxHeight: '90%', maxWidth: '90%', title: '<?php echo $product_info['products_name']; ?>', rel: 'pigallery' }); $('#piGal img').each(function() { var imgid = $(this).attr('id').substring(9); if ( $('#piGalDiv_' + imgid).length ) { $(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid }); } }); } }); }); </script> <?php echo stripslashes($product_info['products_description']); ?>
MarcellaE Posted February 9, 2015 Posted February 9, 2015 Anyone know how to remove the "image 1 or 5" text on the popup? I've looked and can't quite find it's source.
MarcellaE Posted February 10, 2015 Posted February 10, 2015 Found it. Right where it's suppose to be! Imagine that. :) It's in the jquery.colorbox-min. js file.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.