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
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→
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.