Uninstalled Automizely review app plugin code is resizing my landing page

I installed the Automizely review app plugin and decided against using it so I removed the connection between the app and the store, deleted the app from shopify and finally removed the file assets/am_reviews_main_widget.js.

The reviews badge, which placed itself on the right hand side of the page is now gone however code is still being executed which is setting the body of the page to a width of 1280 pixels to accomodate the badge.

I added some code to help debug the behaviour


The output is as follows and if you click on ?_ab=0&_fd=0 etc there’s no source code so I don’t really understand how this is working.

1280
?_ab=0&_fd=0&_sc=1:90 console.trace
(anonymous) @ ?_ab=0&_fd=0&_sc=1:90
Show 1 more frame

How can I purge my website of the remainder of this plugin?

Link to store: www.teenycherubs.com.au

@Andudova

Please share your layouts/theme.liquid file code.

Thanks!

Hi there,

Here is the code. This is with the Automizely app deleted by removing store connection, deleting the app and removing the js file that was inserted by the app in the code. The resizing is still happening, also happening on all my other copies of the themes I have which are not published.

{%- comment -%}DHSEO_START{%- endcomment -%}{% capture dh %}{% include ‘dhseo-snippet’ %}{% endcapture %}{% unless dh contains ‘Liquid error’ %}{% include ‘dhseo-snippet’ %}{% endunless %}{%- comment -%}DHSEO_END{%- endcomment -%}

{% if settings.favicon %}

{% endif %} {{ page_title }}{% if current_tags %}{% assign meta_tags = current_tags | join: ', ' %} – {{ 'general.meta.tags' | t: tags: meta_tags }}{% endif %}{% if current_page != 1 %} – {{ 'general.meta.page' | t: page: current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}

{% if page_description %}

{% endif %}

{% include ‘social-meta-tags’ %}

{% render 'css-variables' %}

{{ ‘timber.scss.css’ | asset_url | stylesheet_tag }}
{{ ‘theme.scss.css’ | asset_url | stylesheet_tag }}

{{ ‘jquery-2.2.3.min.js’ | asset_url | script_tag }}

{{ content_for_header }}
{{ shop.metafields.fontify.stylesheets }}

{{ ‘modernizr.min.js’ | asset_url | script_tag }}

{% comment %}
If you store has customer accounts disabled, you can remove the following JS file
{% endcomment %}
{% if request.page_type contains ‘customers/’ %}
{{ ‘shopify_common.js’ | shopify_asset_url | script_tag }}
{% endif %}

{% comment %}
Add the page template as a class for easy page or template specific styling.
{% endcomment %}

{% capture the_snippet_content %}{% render 'socialshopwave-helper' %}{% endcapture %} {% unless the_snippet_content contains 'Liquid error' %} {{ the_snippet_content }} {% endunless %}

{% section ‘header’ %}

{{ 'cart.general.title' | t }}
{{ 'cart.general.close_cart' | t }}
{% unless request.page_type == "index" %}
{% endunless %} {% include 'breadcrumbs' %} {% if settings.show_breadcrumb_nav %} {% include 'breadcrumbs' %} {% endif %} {{ content_for_layout }} {% unless request.page_type == "index" %}
{% endunless %}

{% section ‘footer’ %}

{% comment %}
Template-specific js
{% endcomment %}

{% comment %}
Ajaxify your cart with this plugin.
Documentation:

{% if settings.cart_type == ‘drawer’ %}
{% include ‘ajax-cart-template’ %}
{% endif %}

{% if request.page_type == ‘product’ or request.page_type == ‘index’ %}

{% endif %}

{% include 'search-bar', search_btn_style: 'btn', search_bar_location: 'search-bar--modal' %}
  • {{ 'general.accessibility.refresh_page' | t }}
  • {{ 'general.accessibility.selection_help' | t }}
  • {{ 'home_page.slideshow.navigation_instructions' | t }}
{% include 'product_pinch_zoom' %}

Finally got to the bottom of this.

The vendor was injecting a series of scripts using the content_for_header (this is after deleting the app, removing permissions and deleting my account).

I wrote the following to remove the bit where the scripts are activated.

  
  {% capture modified_content_for_header %}{{ content_for_header }}{% endcapture %}
  {% if template.name == 'index' %}
    {% assign modified_content_for_header = modified_content_for_header | remove: "window.attachEvent('onload', asyncLoad);" | remove: "window.addEventListener('load', asyncLoad, false);" %}
  {% endif %}
  
  {{ modified_content_for_header }}

However now the problem is it cancels out all other plugins I had installed.