All Collections
Viral Loops for Shopify
How to control the display of the widget
How to control the display of the widget

Control where the Viral Loops Widget appears in your Shopify store

Fivos Stergiannis avatar
Written by Fivos Stergiannis
Updated over a week 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?