Jump to content

Diggles

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Diggles

  1. A programmer friend helped me by adjusting the above code to get it to work on my site. I'm assuming these adjustments are needed to get it working in SS 7.1. The code below will add an underline to the active tagcloud anchor tag <!--- Add style="text-decoration: underline;" for currently selected tag filter --------------------------> <script> (function() { const tagCloud = document.querySelector(".sqs-tagcloud"); if (tagCloud) { const currentPath = window.location.pathname + window.location.search; const selectTag = tagCloud.querySelector(`li a[href*='${currentPath}']`); if (selectTag) { selectTag.style.textDecoration = "underline"; } } })() </script> Instead of adding a style, I want to add a class. With my limited JS knowledge I was able to accomplish it by modifying the above script like this <!--- Add class="tag-active" for currently selected tag filter --------------------------> <script> (function() { const tagCloud = document.querySelector(".sqs-tagcloud"); if (tagCloud) { const currentPath = window.location.pathname + window.location.search; const selectTag = tagCloud.querySelector(`li a[href*='${currentPath}']`); if (selectTag) { selectTag.classList.add("tag-active"); } } })() </script>
  2. I heard back from support and this is what they wrote: Thanks for contacting us about this. We’ve noted your report with our Engineering and Design teams for review. They’ll use this feedback when creating fixes and improvements for future releases. There are many variables that we need to test against before we can make changes, and we can’t guarantee changes for this issue in the immediate future. That said, our teams consider all feedback, and your input is always encouraged. Hopefully, it will be fixed soon.
  3. I'm using 7.1 and as you can see from the attached screenshot, Categories is grayed out in the Display Type dropdown. I have 3 categories with products in each category. My website is https://shop.digglesphotography.com. I am currently using Display Type Tags, but I would prefer to use Categories. Thank you for any help you can provide! Warren
  4. Hello, Based on the turn off Ajax loading suggestion in the thread, I'm assuming this script is for 7.0. I'm using 7.1 and the first tag is always bolded, no matter which ?tag= has been clicked. Do you have any suggestions for how to make the script work in 7.1? My site is https://shop.digglesphotography.com Thank you for any help you can offer. Warren
×
×
  • 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.