Removing the header background layover
(function() {
window.onload = function() {
console.log(“Checking the URL:”, window.location.pathname);
// Check if the URL does not contain ‘/about-us’
if (!window.location.pathname.includes(‘/about-us’)) {
console.log(“Not the About Us page, removing the header…”);
// Select the header element with the specified classes and remove it from the DOM
var headerElement = document.querySelector(‘header.entry-header.responsive-max-width.flex.align-center’);
if (headerElement) {
headerElement.parentNode.removeChild(headerElement);
}
} else {
console.log(“This is the About Us page, header will remain.”);
}
};
})();
