Jump to content

Change size of add to cart button


Recommended Posts

Hi

I need to change the size of the add to cart button and the background of the button in the product page on my site.

I assume it is in the global.css files somewher but I do not know what I am looking for.

Please can somebody give me a clue.

thanks

Hippooflove

Link to comment
Share on other sites

Its a bit tricky.. If you edit the global.css, all the buttons that are the same class will be changed to whatever size you specify as well as you will have to make new button images to reflect the new size. which add to cart button do want to enlarge? all? home featured? product page? a little more info and we can work out a solution.

Link to comment
Share on other sites

  • 2 months later...

Edit global.css and make new css class for the new button. For example see the code below. After that, open the module TPL file, for example homefeatured.tpl and change default css class with your new one.


Global.css

Mynewbutton {
   width: 160px;
   background-image: url('../img/button-medium.png');



Homefeatured.tpl

{l s='Add to cart' mod='homefeatured'}

Link to comment
Share on other sites

  • 8 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...