Jump to content

Change the shape of buttons to a custom button

Recommended Posts

Hello,

Can anyone help me with changing the button shapes...

I am trying to get the buttons to look like a pipe. Maybe just adding a stroke at the corners?? I'm not sure how to do it.

 

I want it to look like the brand mark (but not the cross shape) just the rectangle shape that's been outlined

image.png.dfc90fb7ddeb2deefd33693dc38454e6.png

Website: https://doctorflow.squarespace.com

Password: doctorflow

 

Thank you for any help 🙂

 

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk/

Link to comment

Hi @TimMarner - you can try assigning a background image to a button by uploading your brand mark to the CSS panel as a file, and then assigning it with css. It will definitely take tweaking the following properties to get it to apply correctly, but this should be a good starting point:

 

.sqs-button-element--primary {
   padding:  !important;
  border: 0px !important;
    background-color: transparent !important;
  background-image: url("REPLACE URL HERE");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 75px 75px;
  height: 50px; 
  width: 150px;
  font-display: none;
  color: transparent !important;
  -webkit-transition: 3s;
  transition: 3s;
}

 

Link to comment
6 hours ago, TimMarner said:

Hi, thanks for your help

I've added the code in with my image but yes it looks like it still needs some adjusting

Hi Tim- try adjusting the code to remove the "font-display" and "color" properties, and then add in these properties to fix alignment:

 

    justify-content: center;
    align-items: center;
    display: inline-flex !important;

 

Lmk if that works!

Link to comment

This looks much better thank you!

Is there a way I can do this but for the white buttons too? I can upload my white button image but I think I would need to target only the bright backgrounds? (like the the navigation bar)

Thanks for the help 🙂

 

Tim Marner®
Award-Winning Branding Agency In Bolton

https://timmarner.co.uk/

Link to comment
On 7/8/2024 at 6:07 PM, TimMarner said:

I have figured out how to change the colour on different themes but I've noticed there is space around the button when its left-aligned

Do you think you could help with this please?

I think the button is fine. If you still have problem, can you take a screenshot?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.