To change h2 to h1 tag in Shop Category Heading, you can do these.
#1. First, use this code to Store Page Header Injection (or Code Injection > Footer)
<script>
document.querySelectorAll('h2.nested-category-title').forEach(function(h2) {
const h1 = document.createElement('h1');
h1.innerHTML = h2.innerHTML;
Array.from(h2.attributes).forEach(function(attr) {
h1.setAttribute(attr.name, attr.value);
});
h2.parentNode.replaceChild(h1, h2);
});
</script>
#2. Result


