Skip to main content

How to control the display of the widget

Control where the Viral Loops Widget appears in your Shopify store

Thanos avatar
Written by Thanos
Updated over 6 years ago

If you want to hide the Viral Loops widget from some pages of your Shopify store or show it exclusively in some others, you can add these snippets of code in the page to control the behaviour of the widget.

To show the widget:ย 

<script>window.SHOW_VL_WIDGET = true;<script>


To prevent the widget from appearing:

<script>window.SHOW_VL_WIDGET = false;<script>


This code overrides the relevant setting from the Shopify Dashboard:

Did this answer your question?