Remove Legacy Elevar Snippets

Manually Remove Legacy Snippet References from your Theme Files

References to render the Elevar Legacy Snippets are typically found in the following files:

  • theme.liquid
  • checkout.liquid [Shopify Plus Stores Only]
  • theme.zipifypages.liquid [Zipify Landing Pages]
  • theme.shogun.landing.liquid [Shogun Landing Pages]

To remove the references you'll want to remove the following code if found in these files.

theme.liquid

You will find the following references in the of your theme.liquid file. They should be found right below your opening tag, but if they have been moved they may exist elsewhere.

{% render 'elevar-head-listener' %}
{% render 'elevar-head' %}

This is an example how how they may appear in your theme.liquid

You'll find the following reference in the of your theme.liquid. This reference should be right below your opening tag, but if it has been moved it may exist elsewhere

{% render 'elevar-body-end' %}

This is an example how how they may appear in your theme.liquid

Checkout.liquid

You will find the following references in the of your checkout.liquid file. They should be found right below your opening tag, but if they have been moved they may exist elsewhere.

{% render 'elevar-head-listener' %}
{% render 'elevar-head' %}

This is an example how how they may appear in your checkout.liquid

You'll find the following reference in the of your checkout.liquid. This reference should be right below your opening tag, but if it has been moved it may exist elsewhere

{% render 'elevar-checkout-end' %}

This is an example how how they may appear in your checkout.liquid

Landing Pages

Using an extension that searches all your theme files such as Shopify Theme File Search by EZFY may making finding reference easier for you.

You may find the following references in the of your landing page theme file. They should be found right below your opening tag, but if they have been moved they may exist elsewhere.

{% render 'elevar-head-listener' %}
{% render 'elevar-head' %}

This is an example how how they may appear in your landing page file:

You may find the following references in the of your landing page theme file. They should be found right below your opening tag, but if they have been moved they may exist elsewhere.

{% render 'elevar-body-end' %}

This is an example how how they may appear in your landing page theme file

Manually Remove Legacy Snippets

Once you have removed all the references to the Snippets, you can remove the snippets from your theme.

  1. Go to edit code for your theme.
  2. Filter on "elevar"
  3. Click each snippet and the delete and edit icons will appear.
  4. Delete each snippet with the trash cash icon.

Update your Code Base

Make the following updates in your codebase:

Remove Snippets:

Remove the following snippets from your code base

  • elevar-head-listener.liquid
  • elevar-head.liquid
  • elevar-body-end.liquid
  • elevar-checkout-end.liquid

Changes to the theme.liquid:

Remove the following references from your theme.liquid code:

{% render 'elevar-head-listener' %}
{% render 'elevar-head' %}
{% render 'elevar-body-end' %}

Changes to the checkout.liquid (if applicable):

Remove the following references from your checkout.liquid code:

{% render 'elevar-head-listener' %}
{% render 'elevar-head' %}
{% render 'elevar-checkout-end' %}

Changes to the landing page theme files (if applicable)

Remove the following references from your landing page theme files, you may not find references to all but remove any that you find.

{% render 'elevar-head-listener' %}
{% render 'elevar-head' %}
{% render 'elevar-body-end' %}