$w.onReady(function () { // Use the jQuery selector to find the element by class $w("a[data-hook='cart-icon-button']").attr("role", null); }); $w.onReady(function () { // Select the h1 element using its id or data-hook let productTitle = $w("#ng_header_tag_item_2"); // Create a new h2 element let h2Element = $("

").html(productTitle.html()).attr("data-hook", "product-title").attr("class", "OXQzmM").attr("id", "#ng_header_tag_item_2"); // Replace the h1 element with the new h2 element productTitle.replaceWith(h2Element); });