VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Mister Paul on May 29, 2019, 19:05:26 PM

Title: How to get No description below Image in product detail page?
Post by: Mister Paul on May 29, 2019, 19:05:26 PM
Hi,

sure it should be in front of my eyes... but I can't see it!
???

In Product detail page, I'd like not to have the <span class="vm-img-desc"> file_name.jpg</span> below the product image.

Where should I set this parameter?

Thanks for your help
PAul
Title: Re: How to get No description below Image in product detail page?
Post by: PRO on May 29, 2019, 22:11:33 PM
its in the media manager.
, you could also empty the column via phpmyadmin

Title: Re: How to get No description below Image in product detail page?
Post by: Mister Paul on May 29, 2019, 23:28:26 PM
Oh... you mean that there's not a global parameter for the whole store?
Impossible to disallow publishing all image subtitles in one check-box?
Title: Re: How to get No description below Image in product detail page?
Post by: GJC Web Design on May 30, 2019, 17:19:13 PM
.vm-img-desc {
display:none;
}
Title: Re: How to get No description below Image in product detail page?
Post by: Mister Paul on May 30, 2019, 19:11:42 PM
Yes of course!
That's the trick.
Thanks.

I had to edit template.css as it was loaded after my custom.css
Title: Re: How to get No description below Image in product detail page?
Post by: Jörgen on May 30, 2019, 19:35:04 PM
Ideally you should replace templat.css with a custom.css, when Your changes are stable. But in the main time You should always load custom.css AFTER the template.css. Much of the point with a custom.css gets lost with loading it the other way around.

Jörgen @ Kreativ Fotografi
Title: Re: How to get No description below Image in product detail page?
Post by: Mister Paul on May 30, 2019, 23:09:27 PM
Yes Jörgen you are right. I don't know why the template.php is loaded (at least for these lines) after custom.css. it's the first time I see this behaviour in this professionnal template.

But ideally there should be a choice in Virtuemart not to show any description under Product illustration (product name should be enough in most cases)...
;-)
Title: Re: How to get No description below Image in product detail page?
Post by: jenkinhill on May 31, 2019, 10:25:32 AM
Quote from: Mister Paul on May 30, 2019, 23:09:27 PM
But ideally, there should be a choice in Virtuemart not to show any description under Product illustration (product name should be enough in most cases)...

No switch needed - just don't make an entry for "Displayed image subtitle" for the product.  I have seen some templates which do not show the subtitle by default, to show it you have to edit the overrides....