Custom field only for certain product pages

I added a custom field with custom liquid to my product page but how do I show it only for certain products?

https://followgator.myshopify.com/products/100-instagram-followers

I added this around the code {% If product.title == “Instagram Username” %} {% endif %} but it says “This code has errors. Correct the syntax to save your custom Liquid.”

Hi @gators

Try this {% If product.title contains “Instagram Username” %} instead of {% If product.title == “Instagram Username” %}

no because I’m putting it in custom liquid box I think it’s not accepting it

It looks like you have used capital I in {% If %} please use smallcase if

1 Like

that was it thanks!

1 Like