RESTAURANT


body { background-color: #eddcc8; } .wp-block-button__link:hover{ text-underline-offset: 4px; text-decoration-thickness: 2px; } .wp-block-cover:hover .wp-block-button__link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; } document.addEventListener(‘DOMContentLoaded’, () => { const covers = document.querySelectorAll(‘.wp-block-cover’); covers.forEach(cover => { const buttonLink = cover.querySelector(‘.wp-block-button__link’); // Only proceed if a button link exists inside the cover if (buttonLink && buttonLink.href) { // Make sure it’s not already wrapped in a link if (!cover.dataset.coverLinkEnabled) { cover.style.cursor = ‘pointer’; cover.dataset.coverLinkEnabled = ‘true’; // Prevent duplicate listeners cover.addEventListener(‘click’, e => { // Prevent click if user clicks an actual link or button inside const isInsideInteractiveElement = e.target.closest(‘a, button’); if (!isInsideInteractiveElement) { window.location.href = buttonLink.href; } }); } } }); });