Property Type Conditional Search Fields

jQuery(document).ready(function($) { // ============================================ // FIELD VISIBILITY BASED ON PROPERTY TYPE // ============================================ // All conditional field labels (must match your “Label on Front End” exactly) var allConditionalFields = [ ‘BHK Type’, ‘Furnished Status’, ‘Status’, ‘Min Area (sqft)’, ‘Max Area…Continue reading

ANDRITZ Navigation Panels

document.addEventListener(“DOMContentLoaded”, function () { const triggers = document.querySelectorAll(“.bp-andritz-utility”); const panels = document.querySelectorAll(“.bp-andritz-panel”); const closes = document.querySelectorAll(“.bp-andritz-close”); const backs = document.querySelectorAll(“.bp-andritz-back”); function closeAllPanels(){ panels.forEach(panel => panel.classList.remove(“bp-open”)); document.body.classList.remove(“bp-andritz-active”); } triggers.forEach(trigger=>{ trigger.addEventListener(“click”,function(){ const target = document.getElementById(this.dataset.target); const isOpen = target && target.classList.contains(“bp-open”); closeAllPanels();…Continue reading

VWOTG Trophy Frontend JS

document.addEventListener(‘wpformsReady’, function() { const trophyFieldIds = [20,68,74,53,70,75,54,69,76,55,71,77,66,72,78]; function updateTrophyState() { let remainingCount = 0; trophyFieldIds.forEach(function(fieldId) { const select = document.querySelector(‘#wpforms-40473-field_’ + fieldId); if (!select) return; Array.from(select.options).forEach(function(opt) { const label = opt.textContent || ”; const isUnavailable = label.includes(‘— Unavailable’); if (isUnavailable)…Continue reading

RD Theme Button Smooth Anchor Scroll without Reload

document.addEventListener(‘click’, function(e) { var trigger = e.target.closest(‘[data-rd-scroll-target]’); var targetId, target, headerRoot, headerNodes, i, node, style, rect, headerOffset, targetY; if (!trigger) return; targetId = trigger.getAttribute(‘data-rd-scroll-target’); target = document.getElementById(targetId); if (!target) return; e.preventDefault(); headerOffset = 0; headerRoot = document.querySelector(‘.fusion-tb-header’); if (headerRoot) {…Continue reading

Hide RD Theme Woo Additional Order Info Wrapping Column when No Additional Order Info Present

(function () { function rdToggleAdditionalOrderInfoColumn() { var container = document.getElementById(‘rd-additional-order-info’); if (!container) { return; } if (!container.querySelector(‘.awb-woo-order-additional-info’)) { container.style.display = ‘none’; } } if (document.readyState === ‘loading’) { document.addEventListener(‘DOMContentLoaded’, rdToggleAdditionalOrderInfoColumn); } else { rdToggleAdditionalOrderInfoColumn(); } })();Continue reading

Google Tag Manager – Head

(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’: new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src= ‘https://www.googletagmanager.com/gtm.js?id=GTM-XXXXXXXXXX’+dl;f.parentNode.insertBefore(j,f); })(window,document,’script’,’dataLayer’,’GTM-XXXXXXXXXX’);Continue reading

Untitled Snippet

document.addEventListener(“click”, (e) => { const pill = e.target.closest(“.rs-pill”); if (!pill) return; const row = pill.parentElement; row.querySelectorAll(“.rs-pill”).forEach(p => p.classList.remove(“active”)); pill.classList.add(“active”); });Continue reading

Replace APFWS Matching Product Notice

(function () { if (typeof window === ‘undefined’ || !document) return; // Exit if WooCommerce frontend scripts are not present. if (typeof window.wc_add_to_cart_params === ‘undefined’) return; // Exit if WooCommerce APFS is not present (guards by checking for its AJAX…Continue reading