[Skip to main content](#vessel-content)

#   Customize the ADD TO CART Button without changing all buttons from the checkout

##

- **[lostweb](/forum/user/48190-lostweb "View lostweb's Profile")**
- [![lostweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/48190-lostweb "View lostweb's Profile") Topic Author
- [ Offline](/forum/user/48190-lostweb)

Less More

- Posts: 4
- Thank you received: 0
-
-

9 years 9 months ago -  9 years 9 months ago [\#263152](#263152) by [lostweb](/forum/user/48190-lostweb "View lostweb's Profile")  *[Customize the ADD TO CART Button without changing all buttons from the checkout](/forum/26-product-category-display/889006-customize-the-add-to-cart-button-without-changing-all-buttons-from-the-checkout#263152 "So I want to put an image on the &quot;add to cart&quot; button instead of the text.  In order to do that I separated in the CSS file (frontend&#95;custom.css) and added my own layout. But apparently all buttons from the checkout procedure are the same class .hikashop&#95;cart&#95;input&#95;button so changing the layout of the 'add to cart&quot; button will change the layout of all buttons from the checkout procedure (shipping address, payment....)  Is there an attribute or other selector for this &quot;add to cart&quot; button only, in order to change it's layout? If not, in what file exactly is the mark up for this button so I can add manually an id ?")* was created by *[lostweb](/forum/user/48190-lostweb "View lostweb's Profile")*

So I want to put an image on the "add to cart" button instead of the text.
[ ![Screenshot2017-02-2209.48.06.png](/forum/attachment/36552) ](/forum/attachment/36552 "...2209.48.06.png")

In order to do that I separated Code:

.hikashop_cart_input_button

in the CSS file (frontend_custom.css) and added my own layout. But apparently all buttons from the checkout procedure are the same class .hikashop_cart_input_button so changing the layout of the 'add to cart" button will change the layout of all buttons from the checkout procedure (shipping address, payment....)

Is there an attribute or other selector for this "add to cart" button only, in order to change it's layout?
If not, in what file exactly is the mark up for this button so I can add manually an id ?

[ ![Screenshot2017-02-2209.53.38.png](/forum/attachment/36557) ](/forum/attachment/36557 "...2209.53.38.png")

[ ![Screenshot2017-02-2209.53.54.png](/forum/attachment/36556) ](/forum/attachment/36556 "...2209.53.54.png")

[ ![Screenshot2017-02-2209.48.20.png](/forum/attachment/36554) ](/forum/attachment/36554 "...2209.48.20.png")

[ ![Screenshot2017-02-2209.48.50.png](/forum/attachment/36553) ](/forum/attachment/36553 "...2209.48.50.png")

[ ![Screenshot2017-02-2209.48.59.png](/forum/attachment/36555) ](/forum/attachment/36555 "...2209.48.59.png")

- [ ![Screenshot2017-02-2209.48.06.png](/forum/attachment/36552) ](/forum/attachment/36552 "...2209.48.06.png") [ ](/forum/attachment/36552?download=1 "...2209.48.06.png")
- [ ![Screenshot2017-02-2209.48.50.png](/forum/attachment/36553) ](/forum/attachment/36553 "...2209.48.50.png") [ ](/forum/attachment/36553?download=1 "...2209.48.50.png")
- [ ![Screenshot2017-02-2209.48.20.png](/forum/attachment/36554) ](/forum/attachment/36554 "...2209.48.20.png") [ ](/forum/attachment/36554?download=1 "...2209.48.20.png")
- [ ![Screenshot2017-02-2209.48.59.png](/forum/attachment/36555) ](/forum/attachment/36555 "...2209.48.59.png") [ ](/forum/attachment/36555?download=1 "...2209.48.59.png")
- [ ![Screenshot2017-02-2209.53.54.png](/forum/attachment/36556) ](/forum/attachment/36556 "...2209.53.54.png") [ ](/forum/attachment/36556?download=1 "...2209.53.54.png")
- [ ![Screenshot2017-02-2209.53.38.png](/forum/attachment/36557) ](/forum/attachment/36557 "...2209.53.38.png") [ ](/forum/attachment/36557?download=1 "...2209.53.38.png")

Last edit: 9 years 9 months ago by [lostweb](/forum/user/48190-lostweb "View lostweb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkwMDYtY3VzdG9taXplLXRoZS1hZGQtdG8tY2FydC1idXR0b24td2l0aG91dC1jaGFuZ2luZy1hbGwtYnV0dG9ucy1mcm9tLXRoZS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

9 years 9 months ago [\#263157](#263157) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Customize the ADD TO CART icon without changing all icons from the checkout](/forum/26-product-category-display/889006-customize-the-add-to-cart-button-without-changing-all-buttons-from-the-checkout#263157 "So I want to put an image on the &quot;add to cart&quot; button instead of the text.  In order to do that I separated in the CSS file (frontend&#95;custom.css) and added my own layout. But apparently all buttons from the checkout procedure are the same class .hikashop&#95;cart&#95;input&#95;button so changing the layout of the 'add to cart&quot; button will change the layout of all buttons from the checkout procedure (shipping address, payment....)  Is there an attribute or other selector for this &quot;add to cart&quot; button only, in order to change it's layout? If not, in what file exactly is the mark up for this button so I can add manually an id ?")*

Hi,

Sure. For example, on the product page, you can use that CSS:
.hikashop_product_page .hikashop_cart_input_button{
// your CSS
}

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkwMDYtY3VzdG9taXplLXRoZS1hZGQtdG8tY2FydC1idXR0b24td2l0aG91dC1jaGFuZ2luZy1hbGwtYnV0dG9ucy1mcm9tLXRoZS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lostweb](/forum/user/48190-lostweb "View lostweb's Profile")**
- [![lostweb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/48190-lostweb "View lostweb's Profile") Topic Author
- [ Offline](/forum/user/48190-lostweb)

Less More

- Posts: 4
- Thank you received: 0
-
-

9 years 9 months ago [\#263274](#263274) by [lostweb](/forum/user/48190-lostweb "View lostweb's Profile")  Replied by *[lostweb](/forum/user/48190-lostweb "View lostweb's Profile")* on topic *[Customize the ADD TO CART icon without changing all icons from the checkout](/forum/26-product-category-display/889006-customize-the-add-to-cart-button-without-changing-all-buttons-from-the-checkout#263274 "So I want to put an image on the &quot;add to cart&quot; button instead of the text.  In order to do that I separated in the CSS file (frontend&#95;custom.css) and added my own layout. But apparently all buttons from the checkout procedure are the same class .hikashop&#95;cart&#95;input&#95;button so changing the layout of the 'add to cart&quot; button will change the layout of all buttons from the checkout procedure (shipping address, payment....)  Is there an attribute or other selector for this &quot;add to cart&quot; button only, in order to change it's layout? If not, in what file exactly is the mark up for this button so I can add manually an id ?")*

thanks Nicolas, it works!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODkwMDYtY3VzdG9taXplLXRoZS1hZGQtdG8tY2FydC1idXR0b24td2l0aG91dC1jaGFuZ2luZy1hbGwtYnV0dG9ucy1mcm9tLXRoZS1jaGVja291dD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.058 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
