Jump to content

Code Injection Visibility to Hidden

Recommended Posts

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>

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Yes. You can do this.

First set tag for some products. Then you can use CSS to hide products belong this tag.

Set tag first, then share link to a product. We can check carefully.

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.