How to remove GemPages code from your theme

This article will walk you through steps on how to remove the GemPages code from your store.

Revert to Shopify default templates

Before we start, you will need to revert to the original Shopify template if you’re using GemPages for your homepages, product pages, and/or collection pages.

Step 1: From your Shopify Admin, navigate to Online Store > Themes > Actions and select “Edit Code.”

 

 

Step 2: After that, look for the below files via the search bar. 

 

  • index.liquid for homepages
  • product.liquid for product pages
  • collection.liquid for collection pages

Open the files, click "Older versions" and select "Original version". Hit "Save" when finished.

 

 

By doing so, your live pages will be switched back to Shopify default templates, while GemPages templates are saved for future use.

Remove GemPages code

It's recommended to create a backup version of your theme before removing the code. From your Shopify Admin, navigate to Online Store > Themes > Actions and select “Duplicate” to complete the action.

 

To remove the GemPages code, kindly follow the steps below.

 

Step 1: From your Shopify Admin, navigate to Online Store > Themes > Actions and select “Edit Code.”

 

 

Step 2:  After that, look for the file “theme.liquid” under the Layout section or via the search bar. Open the file to look for the code below.

 

<!--Gem_Page_Header_Script-->
{% include 'gem-app-header-scripts' %}
<!--End_Gem_Page_Header_Script-->

<!--Gem_Page_Footer_Script-->
{% include 'gem-app-footer-scripts' %}
<!--End_Gem_Page_Footer_Script→
You can use Ctrl + F (for Windows) or Command + F (for Mac) to easily locate the code.

Step 3: Remove them and hit “Save” when finished. 

 

 

Step 4: After that, search for the query "gem". Open all files containing the keyword and click on "Delete file".

 

 

After deleting all files, all GemPages code will be completely removed from your theme. 


We understand that GemPages might not be the best fit for everyone. If you want to, please take a moment to tell us what can be improved to enhance your experience via email or live chat. Our team is always eager to hear!


Was this helpful?