Reorder Product Details on a Product Page
Squarespace has given us 4 different layouts for our Squarespace Product pages, but we still don’t have the ability to reorder the product items. This tutorial will walk you through the structure of the product details HTML and how to reorder the items when using the Simple, Half, Wrap, or Full layout options.
#How This Works
The CSS provided below will move the price on your product page to above the “Add to Cart” button. But you can also reorder this content however you’d like.
Let’s take a look at the component parts of the product details.
There are 5 possible items within the details of a product on Squarespace:
Each of these items correspond with the following CSS class names. These CSS class names might vary depending on which Product Page Layout you’re using — Simple vs Half vs Wrap.
So our code is targeting each of these CSS classes and using the order property to set the order in which they stack. The order property only works on the children elements of a grid or flex container.
In the code below, also have a mobile media query which allows to change the order on mobile.
#Usage
Be sure to choose the correct bit of code below that corresponds to the Product Item Layout you’re using.
The Product Page Layout Options can be found when editing the Design of a Product Page on the Format Tab
#Code
Update
On May 22, 2024, Squarespace updated some of their code for the Simple Layout. The CSS below has been updated accordingly.
Using Simple Layout
Design » Custom CSS
Using Wrap or Half Layout
Design » Custom CSS
Using Full Width
Design » Custom CSS
Related Code Snippets
The below Code Snippets are available to Code Curious members.