Hide price and "Add to cart" and "Buy" button in a product template

Topic summary

A user working with Modular Theme 2.0 needs to hide the price, quantity selector, and “Add to Cart”/“Buy” buttons on a specific product template called “pizza” while keeping these elements visible on other products.

Key Challenge:

  • The theme groups “Price and title” together, making selective hiding difficult
  • No built-in option exists to hide quantity and cart buttons per template
  • Using CSS would hide elements across all products, not just the pizza template

Proposed Solution:
GemPages support suggested adding custom code to the theme.liquid file (before the </body> tag), with a screenshot provided showing the implementation location.

Current Status:
The user has created the custom “pizza” template but needs template-specific CSS or code to target only products using that template, avoiding site-wide changes. The discussion remains open with the user awaiting a more targeted solution.

Summarized with AI on November 22. AI used: claude-sonnet-4-5-20250929.

I want to hide the product price and buy and add to cart button in only one product template. I have already created a template and tried to hide the price, but it doesn’t work because the title and price are together “Price and title”. And there is not option for hide qty and add to cart btn. I am using Modular, Theme 2.0

Many Thanks

Hi @Frank0922 ,

Sorry that your facing this problem. Would you mind to share your URL with Password if there is?

And would you tell us also specific product templete which you want to hide the price?

Thanks!

Hello @Frank0922 ,

You can follow these steps:

  1. Go to Online Store->Theme->Edit code

  1. Open your theme.liquid file, paste the below code before


I hope the above is useful to you.

Kind & Best regards,
GemPages Support Team

In this product templates called “pizza” which I created based our default product templates and here I want to hide the price and hide add to card and buy button.

http://bit.ly/402x9xZ

We have 2 different products : 1. with price and add to card and buy button, 2- withtout.. so if i hide this ection via css then in both products are this section hidded.. but i want only hide in pizza product templates.