Jump to content

How do I remove comma's between my category div's on summary block?

Go to solution Solved by paul2009,

Recommended Posts

  • Solution

Try adding this to Settings > Advanced > Code Injection > Footer:

<!-- Hide commas between categories in Summary Block on Sqs 7.1 ------>
window.onload = function(){
  var cats = document.querySelectorAll('.summary-metadata-item--cats');
  for(var i=0; i < cats.length; i++) {
    cats[i].innerHTML = cats[i].innerHTML.replace(/\,/g,'');


  • This is for Summary Block Grids on Squarespace 7.1.
  • Squarespace change their code frequently and without warning, so this may not work in future. Code provided in March 2021.
  • This requires JavaScript, so you'll need to be on a Business Plan or above.

   If this helps you, please click "Like" below  ⬇️

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.