document.addEventListener('DOMContentLoaded', function() {
// Find all breadcrumb nav elements from the Breadcrumbs Uncomplicated app
const breadcrumbNavs = document.querySelectorAll('nav.breadcrumb.category-breadcrumbs');
if (breadcrumbNavs.length >= 2) {
// Get the text content of both breadcrumbs
const first = breadcrumbNavs[0].innerText.trim();
const second = breadcrumbNavs[1].innerText.trim();
// Hide the second breadcrumb's parent block if identical to first
if (first === second) {
// Find the parent shopify-block div and hide it
const secondBlock = breadcrumbNavs[1].closest('.shopify-block');
if (secondBlock) {
secondBlock.style.display = 'none';
}
}
}
});
Gifting has never been easier
Perfect if you're short on time or are unable to deliver your gift yourself. Enter your message and select when to send it.