Remove price from collection pages and hamburger menu not working (Craft)

Remove price from collection pages and hamburger menu not working (Craft)

CraigReep
Excursionist
56 0 3

Desktop Screenshot 2024.07.02 - 12.32.55.26.pngDesktop Screenshot 2024.07.02 - 12.35.09.92.pngHello I recently updated my store to the new craft theme. Although I have tried to copy all custom code I added but appear to be missing some things. 

1. Can somebody help with the code to remove the price on the collection pages to my products with the template  "default product" so this is all gates on my site. But I would like to keep the price to show on my products with the template called "with price" See image below

2. For some reason after updating this my hamburger menu wont work, no idea why. Can anyone help please

Thanks in advance




Replies 7 (7)

Moeed
Shopify Partner
7029 1895 2316

Hey @CraigReep 

 

Your website is password protected, can you share your website password as well?

 

Best Regards,

Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


CraigReep
Excursionist
56 0 3

chameleon

sorry I am currently changing some things in the code so it may change as your looking

Moeed
Shopify Partner
7029 1895 2316

Hey @CraigReep 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.price__container {
    display: none !important;
}
</style>

RESULT:

Moeed_0-1719921751347.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


CraigReep
Excursionist
56 0 3

Hi that has worked, although after speaking to shopify support there are some more errors.

I was using an app, price calculator, on my product pages to let users input custom dimentions and work out a price. This has now disappeared from my profuct pages. Could you help with this as insure why?

Moeed
Shopify Partner
7029 1895 2316

Hey @CraigReep 

 

Remove the previous code and add this new code, this code will only remove prices from the collection page.

{% if template.name == 'collection' %}
<style>
.price__container {
    display: none !important;
}
</style>
{% endif %}

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


CraigReep
Excursionist
56 0 3

This hasnt worked. The tamplate is called "default product" 
Should it say "if default.product"

CraigReep
Excursionist
56 0 3

Hi also sorry this didnt work infact, It hid the price for all products. But I only want it too for products with the template "default"