How do I remove the weird button from my Colorblock theme product page?

Topic summary

Main issue: An unwanted “weird button” appears on the product page in the Shopify Colorblock theme when items are in stock; the sold‑out state displays correctly. Screenshots were provided to illustrate the button behavior.

Information gathering: A helper requested the store URL and password; the original poster shared details via private messages. Another participant also asked for the store URL to investigate.

Proposed fix: One helper suggested a theme code change:

  • Go to Online Store > Edit Code.
  • Open theme.liquid.
  • Add custom code just above the tag.
    A “result” screenshot was shared indicating the change may remove the button. However, the actual code snippet is missing from the post.

Technical notes: “theme.liquid” is the main layout file for Shopify themes, and Colorblock is a Shopify theme. The fix likely involves hiding or conditionally rendering the button via custom HTML/CSS/JS.

Status: No confirmation from the original poster that the fix worked. The discussion remains open, with a key missing detail (the exact code) preventing clear replication of the solution. Images are central; the code snippet is referenced but not provided.

Summarized with AI on January 16. AI used: gpt-5.

Hi,

When a product is not sold out I get this weird button showed below on my product page store. When a product is sold out it will show this as it should, the button only seems to occur when a product is not sold sold out. Screenshots added below for further clarification.

Any advice?

Kind Regards,

Hendrik

rm.png

rm2.png

1 Like

Hey @henkos

Could you please provide your Store URL and, if applicable, the Password too? Your cooperation is greatly appreciated!

Best Regards,
Moeed

hi, contacted you in messages

Hello @henkos

Please provide your store URL, so I can review it and provide a solution.

thanks

Hey @henkos

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 tag


RESULT:

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

Best Regards,
Moeed