Domanda

one of the category page of our Magento site throws an JS error Uncaught ReferenceError: j$ is not defined. Upon investigating, this was found present with

<script> j$('h1').hide(); </script>

How and where do I remove j$ from this function. I need to know where this code resides.

enter image description here

È stato utile?

Soluzione

Search your whole project for j$('h1').hide(), your IDE will tell you what file it is from.

If it returns nothing then it isn't in your code base and may be added by a third party.

Added: Based on the 'category-description' class it looks like your customer has added this inside the category description field? It'll be worth checking in the admin panel.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top