Jump to content

BRINE: Change Donate Button Style

Recommended Posts

Site URL: https://rafida.org

Hey,

In the attached image you can see the button that says 'CARD'. This is the inbuilt 'donate' function on Squarespace.

Is there any way to control the style of the button? We want it to look like the other buttons on the right and left of it.

I could not find any non-code way to adapt the style through Squarespace.

Thanks

Website access:
rafida.org
pass: lastphasetesting3

 

 

Screenshot 2020-09-21 at 00.38.28.png

Link to comment

Add the following to Page Settings > Advanced > PAGE HEADER CODE INJECTION for the page.

<style>

  body:not(.button-style-default).button-style-outline .sqs-editable-button {
  
    background-color: #e37262;
    
    -webkit-box-shadow: 0 2px 0 0 #dd5340;
    box-shadow: 0 2px 0 0 #dd5340;
    
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    
    }
    
  body:not(.button-style-default).button-style-outline .sqs-editable-button:hover {
  
    background-color: #e67e70;
    
    }
        
  </style>

This is for a v7.0 site using the Brine template.

If you're not on the business plan or above then add it to Design > Custom CSS, sans the style tag.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 10 months later...
  • 4 months later...

I am also looking to make my donate button match the other buttons! I tried messing with the code @creedon provided for OP, but was unsuccessful.

Buttons I like are on the homepage: http://amepstein.com and buttons I want to be bigger / look like those are at http://amepstein.com/gifts

Or even better yet--is there a way to put the donate button link / code in a regular button or image so I can make them more like cards?

TIA! 

Link to comment

@ameliastier

The reason the code didn't work it that it is for a v7.0 site. Your site is v7.1.

Here is something you can try. Add the following to Design > Custom CSS.

.donation-block .sqs-donate-button-wrapper {

  transform : scale( 1.5 );

  }

This is for v7.1.

You can play with the 1.5 value.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 months later...
32 minutes ago, loren1 said:

I'm looking to change the opacity to solid and adjust the hover color on the donate button.

Add the following to Design > Custom CSS.

/* begin alter donate button */

  body:not( .button-style-default ).primary-button-style-solid .site-wrapper:not( .with-button-variants ) #block-yui_3_17_2_1_1648508980957_2756 .sqs-editable-button:hover {
  
    opacity : unset;
    
    }
    
  .primary-button-style-solid .dark-bold #block-yui_3_17_2_1_1648508980957_2756 .sqs-button-element--primary:hover {
  
    background-color : red;
    color : green;
    
    }
    
  /* begin alter donate button */

This is for v7.1 and specific to the poster's need.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Create an account or sign in to comment

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

×
×
  • 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.