Jump to content

mindfulrelease

Member
  • Posts

    20
  • Joined

  • Last visited

Everything posted by mindfulrelease

  1. Hi, I am trying to remove the image overlay on my product images. I am on Squarespace 7.0 and I can't find any information regarding how to change it for those of us stuck in the stone ages. Any help would be great, thank you!
  2. I have scoured the internet looking for an answer to this and have come so close so many times.. I am looking for custom code to remove the Add to Cart button on individual products on my Squarespace site. I am looking to have different products on my shop page that just link to amazon affiliate pages, therefore I don't need an add to cart button on the product. It seems the simplest option is to hide the Add to Cart Button and just have a hyperlink in the description of the product for the purchase. But, ideally, I would love a button that just links to a custom URL. I am using a BRINE family template (Sonora) and my website is www.mindfulrelease.com I have found many ways to do this, but none that are compatible with AJAX being on. I just want the button gone without having to refresh the page. Any help would be greatly appreciated! I tried the following AJAX compatible code, and it was very close, but I couldn't figure out how to apply the hiding of the button to just one product with the tag "hide-atc". I also want individual products to link to different URLs, so if I have to create different tags for those products, I'm happy doing that as well. I am pretty novice at this all, and having an old version of Squarespace definitely doesn't make researching this any easier. <script> window.Squarespace.onInitialize(Y, function() { var parent = document.getElementsByClassName("sqs-add-to-cart-button-wrapper")[0]; var oldBtn; var newBtn; oldBtn = document.getElementsByClassName("sqs-add-to-cart-button")[0]; if (oldBtn) { oldBtn.style="display: none;" } if (parent) { newBtn = document.createElement("div"); newBtn.className = "amazoncheckoutbuttonwrapper"; newBtn.innerHTML = "<a class='amazoncheckoutbutton' target='_blank' href='https://www.amazon.com/Mistys-Tale-Leopold-J-Cimino/dp/1733605800/'>SHOP NOW</a>"; parent.appendChild(newBtn); } }); </script> I also added this: window.Squarespace.onInitialize(Y, function() { var pid = document.querySelector('.ProductItem-details .sqs-add-to-cart-button'); if (pid) { pid.classList.remove('sqs-editable-button'); } }); And I tried the variation of this, but it didn't work: window.Squarespace.onInitialize(Y, function() { var pid = document.querySelector('.tag-hide-atc .ProductItem-details .sqs-add-to-cart-button'); if (pid) { pid.classList.remove('sqs-editable-button'); } });
  3. Hi, I am trying to add products to my Shop page, but when I make the product visible and published, it doesn't appear on my Shop. Also, the Manage Products button doesn't do anything when I click on it, so I can't add a product block manually into the shop page, if that's what that button is for. Any help would be greatly appreciated! Thank you. My website is: www.mindfulrelease.com
×
×
  • 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.