News:

Support the VirtueMart project and become a member

Main Menu

hide payment name if payment logo added

Started by GetSmart, March 14, 2018, 11:15:24 AM

Previous topic - Next topic

GetSmart

Hi all,
It is possible  to hide payment name  if payment logo are added?

Thank you.

jenkinhill

Use a css override. eg for default VM templates:

.vmpayment_name {
      display: none;
}
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GetSmart

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.

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GetSmart

OK thank you, I'll try your suggestion.

Cheers

MAD King

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
Joomla! 4.4.5
VirtueMart 4.2.12 11012