News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Add to Cart Button - How to Change? [Solved]

Started by bblah, November 26, 2011, 17:07:01 PM

Previous topic - Next topic

bblah

I searched the forum and cannot find the answer to this, and forgive me, but I'm very new to Virtuemart. I used Firebug and was able to determine that the styling for
the addtocart-button seemed to be in the vmsite-ltr.css file. I want the button to be brown rather than green. I found  green hex values (#00A000) in the CSS, so I changed all these green values to a brown color (#382E1C) and thought that would change the button color from green to brown. But nothing happened - the button is still green.

I have searched every file on my server and cannot for the life of me find where the button is getting it's style from. There no longer seems to be .gif files for the button like in previous version of VM. And I can't find any other CSS file that controls the button. Any help on this would be greatly appreciated.   :-\

PRO


Biggreuda

One other thing- I made the same mistake, too.
There is also an background-image that is set for this button. I just tried to look it up, but i've already changed it.
Take a closer look into firebug again, and you should find it ;)

bblah

#3
@BanquetTables.pro - thanks for the suggestion, I hadn't thought to do that. The only caveat with this is that every submit button in VM would have to be done this way. I appreciate the suggestion.

@Biggreuda - That's It!! I saw the background image, but it appears gray when you hover over it. So I thought it was some kind of gray transparent overlay or something. On closer inspection, I see that it's a 1px x 240px green thin vertical line. So that's what needs to be changed to change the button color. Seems an odd way to style the button, and certainly not easy to find.  Holla Biggrueda - you Rock! Mucho Gracias. ;)


endo


jenkinhill

joomla_root/components/com_virtuemart/assets/images/vmgeneral/backgrounds.png
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

endo