How to disable Login or Register on Single Product Page

I am looking for a way to disable or hide the Login / Register link (account icon) only when a user is viewing the Single Product Page. I want it to remain visible on the Homepage and other pages.

Here are my store details:

  • Theme Name: pharmify

  • Shopify Version: Online Store 2.0

I have checked the Theme Customizer but couldn’t find a specific setting for this. Is there a CSS snippet or a specific Liquid file (like main-product.liquid) that I need to modify?

Any guidance on which code logic to use (e.g., using {% unless template == 'product' %}) would be greatly appreciated.

Thank you!

Since that’s a third party theme, the first avenue should always be to thoroughly search the theme settings. Many times it’s buried in a place you wouldn’t expect. If not, then you know you want it to apply only to a specific template and you know the correct unless logic. So you can search your code editor. Without a specific website url, it’s pretty hard to give you an exact thing to search for, and contacting the theme developers directly might be more helpful.

Main-product.liquid could be rendering product-form.liquid snippet (most common for third party themes), in which case that file could hold the cart form code including price block logic. Or it could be rendering some other price snippet. So you’re just gonna have to do some investigating and find out where and what. Then you can figure out the how.

thanks. now my problem has solving. beside that i saw in compress-price.css and price.liquid too

For your issue, there’s just not enough information to say go here or go there. All I see is some text with a couple links on a third party theme that no one has access to. That’s not a lot to go on… It’s hard for me to believe that’s not a theme setting, but I’ll take your word for it.

Search for these words on the left hand panel in the code editor

to see price and purchase

you should be able to find what you’re looking for.

Most theme files will be referencing other theme files, until the final code. So this may not be in main-product.liquid. I don’t think it’s about price, but that’s just a hunch. But it will be referenced directly or indirectly. Search for that phrase and see what you come up with. Why is it there? Is there some if logic that is making it be there? Is there no price to the general public at all? The liquid files will reference it. Hover over something, cntrl click it, see what it is.

Also, any block name in theme editor can be searched in code editor:

In sections like main-product, there is schema code. Tells me what blocks:

See the type. I can search for that exact text:

Screenshot 2026-04-24 135206

See how it’s rendering product-price-single snippet, so I just go to the snippets folder and click on that snippet and see what it says

So that price block, I was able to search for the name, find it in schema code in main-product.liquid, press cntrl f and search the type and find the rendered snippet, then finding the exact price code in the snippet. Good knowledge for finding things.