VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: betterlead on August 29, 2016, 19:04:57 PM

Title: How remove Image description in Custom field type "image"
Post by: betterlead on August 29, 2016, 19:04:57 PM
When I create a custom field type "image" and publish it, also the image description is displayed by default. Is there anyway to remove it?

Example on my develop site (right now): https://livingstudio.se/Aliv/shoppa-via-kategori/korthallare-planboecker-boersar/secrid-wallet-black-planbok-korthallare-detaljer

It is under the image "24h-express" I want to remove: 24h-express.png

Cheers
Title: Re: How remove Image description in Custom field type "image"
Post by: GJC Web Design on August 29, 2016, 19:13:38 PM
.vm-img-desc {
  display: none;
  text-align: center;
}
Title: Re: How remove Image description in Custom field type "image"
Post by: betterlead on August 29, 2016, 21:01:52 PM
Hi, thanks. I added this to my custom.css, but it doesn't work.

I might add, that it works and has always worked for product images on product details pages, but not for the custom field "Image" type.
Title: Re: How remove Image description in Custom field type "image"
Post by: GJC Web Design on August 29, 2016, 22:12:12 PM
where is it in https://livingstudio.se/Aliv/templates/yoo_sixthavenue/styles/Frontpage%20Custom%201/css/custom.css?

that css I gave is correct and works.. try Firebug
Title: Re: How remove Image description in Custom field type "image"
Post by: betterlead on August 30, 2016, 13:32:06 PM
Ok, I'll try. I put it in all possible places, but maybe I still missed the correct one..? Frontpage it shouldn't be in, cause it's not the front/index page... I'll try it anyway...
Title: Re: How remove Image description in Custom field type "image"
Post by: betterlead on August 30, 2016, 13:37:00 PM
By golly! You're right. Never thought of this. So the Product Details pages use the style I have for the Frontpage! (Frontpage Custom1)

Many thanks GJC.