Buy me a coffee

Add custom description above Product Add to Cart on Shop Page

You can follow these steps to add custom text to the Product on the Shop Page.

Add Text To Shop Page 01 Min

#1. First, edit Shop Page > Add a Blank Section under Products

Add Text To Shop Page 02 Min

#2. Add some Text Blocks.

In my example, we will add text to 2 products, so we will add 2 Text Blocks

Add Text To Shop Page 03 Min

#3. Use Squarespace ID Finder to find ID of 2 Text Blocks.

In my example, we will have

  • Text 1: #block-yui_3_17_2_1_1721446484537_27294
  • Text 2: #block-yui_3_17_2_1_1721446484537_28268

Add Text To Shop Page 04 Min

#4. Find the ID of 2 Products.

Here 2 products have URLs:

  • Product 1: /store-inset-sidebar/p/style-02
  • Product 2: /store-inset-sidebar/p/style-03

Add Text To Shop Page 05 Min

Add Text To Shop Page 06 Min

Product ID will be like this

  • Product 1: div#thumb-style-02
  • Product 2: div#thumb-style-03

#5. Use this code to Code Injection – Footer (or Shop Page Header Injection)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    // Product 1
    $('#block-yui_3_17_2_1_1721446484537_27294').insertBefore('div#thumb-style-02 .plp-grid-add-to-cart');
    // Product 2
   $('#block-yui_3_17_2_1_1721446484537_28268').insertBefore('div#thumb-style-03 .plp-grid-add-to-cart');
});
</script>

Add Text To Shop Page 07 Min

#6. Result

Add Text To Shop Page 08 Min

#7. If you want to hide a Section (you created in #1), you can use this tool to find the Section ID.

In my example, we will have:

  • section[data-section-id=”669b30ddb256453d6371f219″]

Add Text To Shop Page 09 Min

then use this code to Custom CSS box

section[data-section-id="669b30ddb256453d6371f219"] {
  display: none;
}

Add Text To Shop Page 10 Min

If you want to make it appear in Edit Mode, use this new CSS code

body:not(.sqs-edit-mode) section[data-section-id="669b30ddb256453d6371f219"] {
  display: none;
}

Add Text To Shop Page 11 Min