ADA – skip nav
const skipLink = document.querySelector(‘.skip-link’); if (skipLink) { skipLink.ariaLabel = ‘Skip to Content’; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
const skipLink = document.querySelector(‘.skip-link’); if (skipLink) { skipLink.ariaLabel = ‘Skip to Content’; }Continue reading
(function () { var rdBigPostHelpText = ‘Enter your postcode in the field above to load available suburbs. Once loaded,’ + ‘ select the suburb-postcode combination from the list below.’; // Customise Postcode field description text here. var rdObserverStarted = false;…Continue reading
document.addEventListener(“DOMContentLoaded”, function () { console.log(“✅ Script running”); // 🔥 REMOVE CALL/TEXT BUTTONS setTimeout(function () { document.querySelectorAll(‘a[href^=”tel:”], a[href^=”sms:”]’).forEach(el => el.remove()); }, 1500); });Continue reading
fetch(“https://redllc.ai/wp-json/chaport/v1/lead”, { method: “POST”, headers: { “Content-Type”: “application/json” }, body: JSON.stringify(payload) }) .then(res => res.json()) .then(data => { console.log(“Webhook response:”, data); }) .catch(err => { console.error(“Error:”, err); });Continue reading
// ===== Brand Archive – Welcome panel + My Car (refactored to UG) ===== (function(){ if (!window.UG) return; // hard guard if utils aren’t loaded const { utils, welcome, brand, mycar } = UG; // helper const ready = (fn)…Continue reading
function addNoOpener(link) { var linkTypes = (link.getAttribute(‘rel’) || ”).split(‘ ‘); if (linkTypes.indexOf(‘noopener’) === -1) { linkTypes.push(‘noopener’); } link.setAttribute(‘rel’, linkTypes.join(‘ ‘).trim()); } function addNewTabMessage(link) { if (!link.querySelector(‘.sr-only’)) { link.insertAdjacentHTML(‘beforeend’, ‘(opens in a new tab)‘); } } function isA2ALink(link) { var href…Continue reading
(function($) { ‘use strict’; /** * WP Bakery – Collapse / Expand All Rows (v3) * Fixed: injects buttons into the correct visible navbar list position * Fixed: iterates ROWS not individual toggles (avoids multi-click cancellation) */ function getFirstToggle(rowEl) {…Continue reading
window.bboxInit = function () { bbox.showForm(‘2952a4ba-be77-4303-bea9-bcb849127865’); }; (function () { var e = document.createElement(‘script’); e.async = true; e.src = ‘https://bbox.blackbaudhosting.com/webforms/bbox-min.js’; document.getElementsByTagName(‘head’)[0].appendChild(e); } ());Continue reading