Jump to content

brandonio579

Member
  • Posts

    3
  • Joined

  • Last visited

brandonio579's Achievements

Level 2

Level 2 (2/20)

0

Reputation

  1. edit: for anyone who found this, this code worked for me. Use code injector to do it underwebsite tools. <script> window.addEventListener('load', function() { var container = document.querySelector('.list-grid'); var items = Array.from(container.getElementsByClassName('grid-item')); items.sort(function(a, b) { var titleA = a.querySelector('.grid-title').textContent.trim().toLowerCase(); var titleB = b.querySelector('.grid-title').textContent.trim().toLowerCase(); if (titleA < titleB) { return -1; } if (titleA > titleB) { return 1; } return 0; }); container.innerHTML = ''; items.forEach(function(item) { container.appendChild(item); }); }); </script>
  2. I am dragging my products because I want to rearrange them alphabetically, but when I drag them they do not stay. They just lock back to where they were before. Is there a way to fix this, and better yet is there an easier way to organize products alphabetically? Thank you!
×
×
  • 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.