I got the following script loaded in the head:

<script src="https://selfservice.robinhq.com/external/robin/XXXX.js" async="async"></script>

What is the correct way (syntax) to remove it on every category page (syntax in the local.xml)?

<reference name="content"> 
    (remove method..........)

Magento version

  • is it 3rd party javascript? – Abhishek Panchal Feb 23 '18 at 16:09
  • Yes, it is; so it's loaded externally – Julian Murillo Feb 23 '18 at 16:12
  • from where its loading? I mean which file ? from somewhere its calling into Magento – Abhishek Panchal Feb 23 '18 at 16:17

try below code for Magento 2.

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <remove src="https://selfservice.robinhq.com/external/robin/XXXX.js"/>


  • Hi; Thank you for the answer; I want to keep it in the head and only removed in every category page :) – Julian Murillo Feb 23 '18 at 16:26
  • Then you should put this code in catalog_category_view XML file – Abhishek Panchal Feb 23 '18 at 16:27
  • OP was asking about 1.14 – Shapeshifter Feb 24 '18 at 2:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.