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


kikiashley

Question

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

IMG_7182.jpg

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.

1932677093_ScreenShot2021-05-13at5_02_30PM.thumb.png.4ebd830097e9caf4c9841e490510c736.png

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

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

<style>

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

<script id="mcjs">

  !function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/8089d0e220df25a2e2de0b474/844f28fae6853a5498285d49d.js");
  
  </script>

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