Why am I seeing 'Liquid error: Unknown operator blank' in my store search results?

Topic summary

A Shopify store owner encountered a “Liquid error: Unknown operator blank” message appearing in search results. The issue stemmed from incorrect syntax in the product-grid-item.liquid snippet file.

Root Cause:

  • The error occurred due to an unrecognized operator in the product grid item code
  • Specifically, improper spacing around the comparison operator when checking if product images are blank

Solution Provided:

  • The problematic code product.featured_image.src== blank needed correction
  • Proper syntax requires a space before and after the == operator: product.featured_image.src == blank
  • Multiple instances of this syntax error existed in the snippet and needed fixing

Resolution:

  • A community member provided corrected code and offered direct assistance by requesting staff access
  • The fix was successfully implemented and verified to work
  • At least one other store owner reported experiencing the identical issue after switching to the Brooklyn theme

Key Takeaway:
This is a common Liquid templating syntax error that can occur when modifying theme files, particularly affecting product display functionality.

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

thankyou so much for the help. That has worked perfectly