News:

Looking for documentation? Take a look on our wiki

Main Menu

Image name on product lightbox

Started by soh, March 13, 2014, 20:07:12 PM

Previous topic - Next topic

soh

Hi!

How do i remove the title of the image that appears under the image on lightbox mode:


Eugen S.

Please open:

/components/com_virtuemart/views/productdetails/tmpl/default_images.php

and remove line 27 where you see:

      "titlePosition"    : "inside",
Send me a pm ;-)

soh

Hello! Thx for the help!

But now it looks like this:



Also, i`m using a template override provided by my template, here is the code with the change you requested:

defined('_JEXEC') or die('Restricted access');
vmJsApi::js( 'fancybox/jquery.fancybox-1.3.4.pack');
vmJsApi::css('jquery.fancybox-1.3.4');
$document = JFactory::getDocument ();
$imageJS = '
jQuery(document).ready(function() {
jQuery("a[rel=vm-additional-images]").fancybox({
"transitionIn" : "elastic",
"transitionOut" : "elastic"
});
});
';
$document->addScriptDeclaration ($imageJS);

if (!empty($this->product->images)) {
$image = $this->product->images[0];
?>
<div class="main-image">

<?php
echo $image->displayMediaThumb("",true,"rel='vm-additional-images'");
?>


<div class="clear"></div>
</div>
<?php
$count_images count ($this->product->images);
if ($count_images 1) {
?>

    <div class="additional-images">
<?php
for ($i 1$i $count_images$i++) {
$image $this->product->images[$i];
?>

            <div class="floatleft">
            <?php
                echo 
$image->displayMediaThumb("",true,"rel='vm-additional-images'");
            ?>

            </div>
<?php
}
?>

        <div class="clear"></div>
    </div>
<?php
}
}
  
// Showing The Additional Images END ?>

Eugen S.

No idea without further testing...
Send me a pm ;-)