Custom liquid not showing on published website

Topic summary

Main issue: A product page uses a custom liquid block containing only an HTML div with classes (elfsight-sapp-…); it appears in the theme editor but shows nothing on the published site.

Key points from replies:

  • An empty div will not render visible content; adding just that HTML snippet will display nothing.
  • Additional code or content is required in the theme beyond the placeholder div (e.g., whatever is meant to populate or render inside it).
  • Clarification was requested on what content is intended to display within that div.

Status and next steps:

  • No confirmed fix yet; discussion remains open.
  • The original poster needs to specify the intended content and include the necessary code/script or integration that populates the div so it renders on the live site.
Summarized with AI on December 20. AI used: gpt-5.

I have added this custom liquid to my product pages:

It shows correctly in the theme but when I publish, nothing appears.

Why would this be?

Hi @GG1496

As I can see, if you just just add this html code. it will show nothing.

So you should add something else in your theme except this code

Hello @GG1496 , Could you please clarify what you intended to display within that div? It appears that the div in your code is empty, which is why it is not rendering any content.