Jump to content

Code Injection Visibility to Hidden

Recommended Posts

Posted

I want to hide the "Add to Cart" button on some product pages, but not all product pages. Is it possible to do this with header code injection?

<div class="sqs-add-to-cart-button-wrapper" id="yui_3_17_2_1_1580608190881_561" style="visibility: visible;">
  <div class="sqs-add-to-cart-button sqs-suppress-edit-mode" role="button" tabindex="0" data-collection-id="5e0a55ad0b6558246c1dafef" data-item-id="5e0ceb43bb6d5e7d706119a9" data-product-type="1" data-use-custom-label="true" data-original-label="Add to Cart" id="yui_3_17_2_1_1580608190881_312">
    <div class="sqs-add-to-cart-button-inner">Add to Cart</div>
  </div>
</div>

  • Replies 1
  • Views 1.2k
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.