Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello All!
I want to make a few detailed changes to just one product on our Shopify page. This can't be done in the theme editor because of Focal Theme and needs coding.
I've now done a copy of the ''product-info.liquid'' and made the changes I wanted for the one product.
How can I now target this new ''product-info-staple-5-pack.liquid'' into just this one specific product? How can I find the product ID of that product or any other ideas?
Thank you so much.
Eelis
Hey @eeputti
What about something like this in your main product.liquid or product-info.liquid? It’s just a simple check to look for a specific product ID. You could then use the standard code for regular products while adding custom code for that specific product.
<!-- Add your product ID here -->
{% assign specific_product_id = "123456789" %}
{% if product.id == specific_product_id %}
<!-- Code to execute if the product ID matches -->
<p>This is the specific product you are looking for!</p>
{% else %}
<!-- Code to execute if the product ID does not match -->
<p>This is not the specific product.</p>
{% endif %}
autoBlogger: Seamlessly scheduled, fully automated, AI-powered, and SEO-optimised blogging with FAQs, table of contents and other features! Start your 14-day free trial today!
autoSchema: Fully automated and continuously updated Google structured data, including duplicate data removal. Simple to install – try it now!
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025