Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Adding code to remove add to cart button on store page



Posted (edited)

Site URL: https://www.honeycuttboutique.com/

Hi. im trying to add the code

<style> .product-price, .product-quantity-input, .sqs-add-to-cart-button-wrapper { display: none; } </style>

to page>settings>advanced>page header injection  (to remove the add to cart button on that whole page)

but its not working for me. One of the style tags is highlighted and im not sure how to fix it. What should i do? I have version 7.1


Edited by kikiashley
Link to comment

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

I did notice something funky going on with the code.

From what I can tell it looks something like the following.


A script tag is inside a style tag which is not proper syntax.

You want your code to look something more like the following.


  .ProductItem-details .ProductItem-product-price,
  .ProductItem-details .product-quantity-input,
  .ProductItem-details .sqs-add-to-cart-button-wrapper {
     display : none;

<script id="mcjs">


You'll see I tweaked the CSS.

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

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