undefined (setting 'href') javascript:void(0)

dongfuCamera
Shopify Partner
41 2 0

Uncaught TypeError

https://dongfutrade.com/

 

<script defer>
const breadCrumbLinks = document.querySelectorAll(".breadcrumbs a")
const lastLink = breadCrumbLinks[breadCrumbLinks.length - 1]
lastLink.href = "javascript&colon;void(0)"
</script>

dongfucamera
Reply 1 (1)

HDL-Shin
Shopify Partner
80 20 12

Hi @dongfuCamera

I try your code in home page. I see NodeList is empty array. This means that the part of the word you are querying for does not exist

HDLShin_0-1715337288724.png

 

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
♥️♥️♥️ HDL-Shin || Shopify Partner ♥️♥️♥️