Website Building » Squarespace » How do I add a button in Squarespace?

How do I add a button in Squarespace?

Last updated on December 10, 2022 @ 1:18 am

Creating a button in Squarespace is relatively easy. Follow these steps:

First, open your Squarespace account and go to the Pages tab.

Under the “Design” heading, select “Buttons.”

Click on the “Add a new button” button.

Enter the following information into the “Button description” field:

Name:

Description:

Button text:

Click on the “Create button” button.

Your button will appear in your Pages tab.

To use your new button, copy and paste the following code into a new HTML document, and then save it as a web page.

< button type="button" class="btn btn-default" >Add a new button< /button >

< script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js" >< /script >

< script src="https://Squarespace.com/static/js/buttons.min. < script >

$(document).ready(function() {

$(“#add-button”).click(function() {

$(“#new-button”).slideUp(“slow”);

});

< /script >

Conclusion

Adding a button in Squarespace is easy and can be done in just a few steps.

PRO TIP: Adding a button in Squarespace can be tricky and may result in unexpected behavior. Use caution when adding buttons and be sure to test your changes before publishing them.
Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.