Why my css custom code does appear in my website?

Why my css custom code does appear in my website?

PJaChU
Visitor
1 0 0

Hello everyone, I have been experiencing some troubles about customizing my web site, I have added this code to my price.liquid snippet

 

ErickPalma_0-1722709958020.png

 

unfortunately that piece of code shows in my website like this:

ErickPalma_1-1722710029155.png

 

As you can see it seems like it is taking that like html, could you help me to give me so guide about what am I doing wrong? thanks a lot 🙂

 

 

Replies 2 (2)

Asad-Mahmood
Trailblazer
156 33 38

Try this css code there 

{% raw %}
  <style>
    .product-form__buttons, .product-custom-field-item {
      display: none !important;
    }
  </style>
{% endraw %}
If my solution has been helpful, you can consider supporting me via Buy Me a Coffee.
Hire me: asadmahmood8470@gmail.com
WhatsApp





vinh0225
Shopify Partner
128 26 24

Hi @PJaChU 

 

You need to add the code snippet at the end of the file or you can add it before </head> in the layout/theme.liquid file.

<style>
    .product-form__buttons, .product-custom-field-item {
      display: none !important;
    }
</style>

Hope it will help you.

 

Regards,

Vinh

Was my response useful?  Click Like to let me know!
Was your query resolved? ✓ Mark it as a Resolved Solution
If you need custom Shopify changes, ️you can hire me.
Contact me at  ✉️ jalicorich@gmail.com.