Mobile Menu Toggle Script

document.addEventListener(‘DOMContentLoaded’, function() { const menuToggle = document.querySelector(‘.menu-toggle’); // Check if the toggle button exists if (menuToggle) { menuToggle.addEventListener(‘click’, function() { // Toggle a class on the element document.body.classList.toggle(‘nav-is-open’); }); } });Continue reading

Limit Revisions

/** * Limit WordPress revisions to 5 for all post types. */ add_filter(‘wp_revisions_to_keep’, function ($num, $post) { return 5; }, 10, 2);Continue reading

Google Tag Manager

Totally fair, Warren — this part trips up a lot of people. Let’s break it down clean and clear: 🧠 The Two Parts of GTM Code 1. The Short Code This is your GTM Container ID — it looks like:…Continue reading