VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: GetSmart on March 14, 2018, 11:15:24 AM

Title: hide payment name if payment logo added
Post by: GetSmart on March 14, 2018, 11:15:24 AM
Hi all,
It is possible  to hide payment name  if payment logo are added?

Thank you.
Title: Re: hide payment name if payment logo added
Post by: jenkinhill on March 14, 2018, 12:30:03 PM
Use a css override. eg for default VM templates:

.vmpayment_name {
      display: none;
}
Title: Re: hide payment name if payment logo added
Post by: GetSmart on March 15, 2018, 12:47:18 PM
Quote from: jenkinhill on March 14, 2018, 12:30:03 PM
Use a css override. eg for default VM templates:

.vmpayment_name {
      display: none;
}

Thank you. Yes using css I can. But I need method to be user friendly. I do not want edit each time css.
Title: Re: hide payment name if payment logo added
Post by: Jörgen on March 15, 2018, 12:53:57 PM
You do not have to edit the css each time. This hides the payment names for all payments.

I Think You can add some css in the payment name to hide it.

regards

Jörgen @ Kreativ Fotografi
Title: Re: hide payment name if payment logo added
Post by: jenkinhill on March 15, 2018, 13:25:01 PM
I used the word "override". This is done so that there is no need to recode following every update. eg you can add the override to the end of your template custom.css (if there is one) or create a custom.css file and place a link to it in the template head. Or make a complete override of vm-ltr-site.css
This file is old, but the principles still apply (the older version file was called vm-ltr.css):

http://docs.virtuemart.net/tutorials/templating-layouts/106-override-vmsite-ltr-css.html
Title: Re: hide payment name if payment logo added
Post by: GetSmart on March 15, 2018, 14:29:08 PM
OK thank you, I'll try your suggestion.

Cheers
Title: Re: hide payment name if payment logo added
Post by: MAD King on September 23, 2018, 22:41:19 PM
Quote from: jenkinhill on March 14, 2018, 12:30:03 PM
Use a css override. eg for default VM templates:

.vmpayment_name {
      display: none;
}

Old, but was looking for that.

Thank you