Law & More
(function() { function replaceLogo() { var logoContainer = document.querySelector('.elementor-widget-theme-site-logo a'); var logoImg = logoContainer ? logoContainer.querySelector('img') : null; if (!logoImg || logoContainer.querySelector('svg.lam-logo-svg')) return; fetch('https://lawandmore.eu/wp-content/uploads/2023/12/law_and_more_logo_2024.svg') .then(function(r) { return r.text(); }) .then(function(svgText) { var newSvg = svgText.replace(/#F18716/gi, '#FF6B35'); var parser = new DOMParser(); var svgDoc = parser.parseFromString(newSvg, 'image/svg+xml'); var svgEl = svgDoc.documentElement; svgEl.classList.add('lam-logo-svg'); svgEl.style.width = logoImg.offsetWidth + 'px'; svgEl.style.height = 'auto'; svgEl.style.display = 'block'; logoImg.style.display = 'none'; logoContainer.insertBefore(svgEl, logoImg); }).catch(function() {}); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', replaceLogo); } else { replaceLogo(); } setTimeout(replaceLogo, 800); })();