How to remove or prevent "vm-img-desc" from showing on product details page

Started by creotom, March 07, 2012, 10:19:10 AM

Previous topic - Next topic

creotom

Hi all.
I'm really hoping someone here can help me. I'm pretty sure its simple but for the life of me I cant figure it out on my own.

I'm using joomla 2.5.2 and Virtuemart 2.0.2.
I am populating all of my categories by importing the details from a csv file using CSVI. This is working really well for me and makes it very simple to manage pricing.

The problem is that the image filename is showing under the main image in the product details page.
For example: "product_image_1.jpg" is displayed under the main image.

I would like to know what code to comment out to prevent the "vm-img-desc" field from showing.

I have used firebug and can find the css that describes it but I believe it is a php file that will need to be modified to remove it.
I have searched the folder using dreamweaver and can find no mention of it.

As you can tell I have only a rudimentary knowledge of all the languages so I would really appreciate some assistance with this.
beyond this I believe I can live with the vanilla install of everything I have so far.

Thanks in advance....

Toksa

Add this into your template's css file

.vm-img-desc { display: none; }


Bruce Morgan

Is there way to make this an override in the tmpl folder?  If so I would like to do this and would need exact instructions how to do this.  Thanks

Bruce

PRO


sviatoy

\administrator\components\com_virtuemart\helpers\mediahandler.php

comment or delete this:
if ($withDesc) $desc='<span class="vm-img-desc">'.$withDesc.'</span>';
else $desc='';


VM2 v.2.0.10

megatronx64


Toksa: Add this into your template's css file:
.vm-img-desc { display: none; }


worked for me!

VM2 v2.0.10 + Joomla 2.5.6

Thank you!

hansspiess

the 5th argument of $image->displayMediaThumb() determines wether or not to show the img description, so

Code (default_images.php) Select
echo $image->displayMediaThumb(array ('itemprop' => 'image', 'class'  => 'product-image' ), true, 'class="modal"', true, false);

should output the image without description, and

Code (default_images.php) Select
echo $image->displayMediaThumb(array ('itemprop' => 'image', 'class'  => 'product-image' ), true, 'class="modal"', true, true);

gives us the image with description.