What to do after removing FireAMP app? How do I remove the code of the app ?
FireAMP comes with AMP pages for product, collections, blogs and articles.
To remove all AMP pages remove the following code from your theme.liquid (It will be near </head>)
{% if template contains 'product' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/products/{{product.handle}}.html" >
{% endif %}
{% if template contains 'collection' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/collections/{{collection.handle}}" >
{% endif %}
{% if template contains 'blog' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/blogs/{{blog.handle}}" >
{% endif %}
{% if template contains 'article' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/blogs/{{article.handle}}" >
{% endif %}
If you disable the app and remove it, the code will be removed by itself.
To remove all AMP pages remove the following code from your theme.liquid (It will be near </head>)
{% if template contains 'product' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/products/{{product.handle}}.html" >
{% endif %}
{% if template contains 'collection' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/collections/{{collection.handle}}" >
{% endif %}
{% if template contains 'blog' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/blogs/{{blog.handle}}" >
{% endif %}
{% if template contains 'article' %}
<link rel="amphtml" href="//{{shop.domain}}/apps/fireamp/blogs/{{article.handle}}" >
{% endif %}
If you disable the app and remove it, the code will be removed by itself.
Updated on: 11/27/2019
Thank you!