Jump to content

Apply a 2nd button color in the product page

Recommended Posts

Site URL: http://motsjo.com/shop

Hello there!

I have trouble with buttons colors on the product pages. There is a "contact" (me contacter) button in my header, and the "add to cart" (ajouter au panyeah) one. Problem is I have code color, 'blue' for contacting me and 'green' for purchasing. Do you know if there is a way to determine 2 different button colors in the product pages?

Joy

Link to comment
  • Replies 4
  • Views 909
  • Created
  • Last Reply

Hi do you want to change color of all buttons on the site or just the product page?

Try to add this into Design->Custom css to see

.header-actions-action--cta a.btn--border {
  background-color: blue;
  border-color: blue;
}
.sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button[role="button"] {
  background-color: green;
  border-color: green;
}

image.thumb.png.4aaba784d4505c2d831ee1c7a4c8fa85.png

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Thank you for your answer! Yes, I just want to change the product page button for adding to cart.

 

I tried that in Custom CSS :

.header-actions-action--cta a.btn--border {
  background-color: #0068F0;
  border-color: #0068F0;
}
.sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button[role="button"] {
  background-color: #17B01D;
  border-color: #17B01D;
}

But nothing changed 🙃

Link to comment
2 minutes ago, Mots-Jo said:

Thank you for your answer! Yes, I just want to change the product page button for adding to cart.

 

I tried that in Custom CSS :

.header-actions-action--cta a.btn--border {
  background-color: #0068F0;
  border-color: #0068F0;
}
.sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button[role="button"] {
  background-color: #17B01D;
  border-color: #17B01D;
}

But nothing changed 🙃

Did you still keep it in the custom css, I can have a look

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.