Shogun lets you keep all of your pages and changes after you uninstall our app. Because of this, some Shogun files & code will remain in your theme to ensure the saved content will continue to display correctly. 

If you plan to keep your Shogun content after uninstalling, it is recommended to leave the code in your theme to ensure the pages remain functional.

How to remove Shogun code from your theme

Before Removing the Theme Code

If you've published any content using Shogun, there will also be some Shogun HTML in the content fields of the store's pages. It is recommended to remove that content before beginning this process. The Undo Import feature can be used to remove Shogun content.

If you do not have any active Shogun content and would like to completely remove all Shogun code from your Shopify theme, you can follow the steps below.

Removing the Theme Code

Fair Warning: If you have any active Shogun pages, following these steps may cause those pages to malfunction.

Let's get started.

Go to the Themes section of your Shopify dashboard. Click on the Actions button next to your active theme and select Edit Code.

There are just a few lines of code and some files that need to be removed.

Let's remove the code first.

In the theme.liquid file of the Layout folder, find and remove a line that says 

{% include 'shogun-head' %} 


In the product.liquid file and any product.*.liquid files in the Templates folder, find and remove the following lines:

{% include 'shogun-products', content: product %}
{{product.metafields.shogun.above}}

{{product.metafields.shogun.below}}


In the page.liquid file and any page.*.liquid files in the Templates folder, find and remove the following line:

{% include 'shogun-products', content: page %}


In the collection.liquid file and any collection.*.liquid files in the Templates folder, find and remove the following line:

{% include 'shogun-products', content: collection %}
{{collection.metafields.shogun.above}}

{{collection.metafields.shogun.below}}


In the article.liquid file and any article.*.liquid files in the Templates folder, find and remove the following line:

{% include 'shogun-products', content: article %}


Finally, the following files can be deleted from the theme:
Layout/theme.shogun.landing.liquid
Templates/page.shogun.default.liquid
Templates/page.shogun.landing.liquid
Templates/product.shogun.custom.liquid
Snippets/shogun-head.liquid
Snippets/shogun-products.liquid

Did this answer your question?