document.getElementById("whichcollection").innerHTML = document.title.replace('| Maala Fashion', '') if (document.getElementById("whichcollection").innerHTML.includes('Fashion Made Better')){ document.getElementById("whichcollection").innerHTML = "New In"; }

NEU

setTimeout(function(){ let all_categories = document.getElementById("categorydescid").textContent if (!(all_categories === "")){ let array = JSON.parse(all_categories )[0] for (variable in array ) { let newDiv = document.createElement("a"); newDiv.textContent = variable; newDiv.href=array[variable] newDiv.style = "padding: 7px 12px;border-radius: 5px;border: 1px solid #666;margin: 10px;display: inline-block;" document.getElementById("subcategoriesdiv").appendChild(newDiv ); } } }, 1000)
window.onload = function(e){ let elements = document.getElementsByClassName("cmp-product-thumb") $(".category-item-placeholder").css("min-height", elements[0].offsetHeight) }