Overview
Once you have generated a Buy Button, the final setup happens on your website. You will paste the full code snippet into an HTML or code block on the product page where you want the button to appear. WordPress and Squarespace use slightly different editors, but the principle is the same: the code must be added as code, not as ordinary page text.
Before you begin, make sure the product and Buy Button Profile are final. If you regenerate the button after installation, you may need to replace the code on the page. It is also a good idea to work on a draft or staging page first, especially if your theme includes custom scripts, page builders, or reusable product templates.
The steps below cover the standard editors for both platforms. Your screen may look a little different depending on your theme or plugins, but you should still be looking for a Custom HTML, Code, or Embed block.
Before you start
Generate the complete button code for the approved product.
Back up the page or work on a staging copy.
Confirm that you can add an HTML or Code block.
Install on WordPress
Open the page or post in WordPress.
Select the location where the button should appear.
Add a Custom HTML block.
Paste the complete generated code into the block.
Preview the page.
Publish or update the page.
If you use Classic Editor Plugin, switch to Text mode before pasting. If the button belongs in a Site Editor template, add the Custom HTML block to the template and save it.
Install on Squarespace
Open the page in Edit mode.
Add a Code block where the button should appear.
Set the block type to HTML.
Paste the complete generated code.
Select Apply, then save the page.
Preview the published or password-protected page. Squarespace may not execute scripts inside the editor.
Test the published page
Confirm that the button loads, adds the correct product and quantity, opens the cart, and reaches the expected checkout on desktop and mobile. Do not change the generated product, profile, or timestamp identifiers.
A final check
Do not stop at confirming that the button is visible. Click it, add the product to the cart, and continue through checkout on both desktop and mobile. A button can look correct while still pointing to the wrong product or failing later in the journey.
Questions? Please email your dedicated PSM or [email protected] for assistance.
