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

dongfuCamera
Shopify Partner
44 3 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
Replies 2 (2)

HDL-Shin
Shopify Partner
80 20 15

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 ♥️♥️♥️
dongfuCamera
Shopify Partner
44 3 0

okay,thanks my  friend,

dongfucamera