Checkout Page – Expand Cart Summary

document.addEventListener(“DOMContentLoaded”, function () { const observer = new MutationObserver(function () { const toggleButton = document.querySelector(“.wc-block-components-checkout-order-summary__title”); if (toggleButton && toggleButton.getAttribute(“aria-expanded”) === “false”) { toggleButton.click(); observer.disconnect(); // stop observing once it’s expanded } }); observer.observe(document.body, { childList: true, subtree: true }); });Continue reading

JetFormbuilder – Media field text after upload v2

document.addEventListener(‘DOMContentLoaded’, function () { const { addAction } = window.JetPlugins.hooks; const textChoose = ‘Choose File’; const textUpload = ‘File Added’; const textNone = ”; function getFileNames(fileList) { if (!fileList.length) return ”; return Array.from(fileList).map(file => file.name).join(‘, ‘); } function triggerInput(el, value)…Continue reading

Rdogs Custom Header

/* ================================================================= RAVER DOGS – MASTER STYLESHEET ================================================================= */ /* — 1. Global Body & Link Styles — */ body { color: #FFFFFF; font-family: “brandon-grotesque”, sans-serif; font-size: 18px; font-weight: 400; /* Normal */ line-height: 1.6; } /* Default Link Styles…Continue reading

Checkout styling

/* ===== WooCommerce Cart + Checkout — Tallman styles (scoped) ===== */ .woocommerce-cart, .woocommerce-checkout { /* make sure Work Sans is used if it’s already loaded by your theme */ } /* Headings (H1–H6) */ .woocommerce-cart .woocommerce h1, .woocommerce-cart .woocommerce…Continue reading

Rank Math FAQ Accordions

jQuery(document).ready(function($) { function initAccessibleFaq(context) { $(context).find(‘#rank-math-faq’).each(function() { var $faqBlock = $(this); $faqBlock.find(‘div.rank-math-list-item’).each(function(index) { var $item = $(this); if ($item.data(‘faq-initialized’)) return; // Verhindert doppeltes Binden var $question = $item.find(‘.rank-math-question’).first(); var $answer = $item.find(‘.rank-math-answer’).first(); var questionId = ‘rm-faq-q-‘ + index + ‘-‘…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

External database table- Bestandskundenprocess Form – Dynamic Fetch, Table & Dropdown Logic – JavaScript

/** * ============================================================================ * CLIENT-SIDE SCRIPT FOR FLUENT FORM COMPANY & EMPLOYEE AUTOFILL * ============================================================================ * Author: Sumaiya, Anytype Doc: anytype://object?objectId=bafyreicy3gry4icfd5icgzp5a2ezqg7u2ct2p3syxfimd5hj2qnlotfbdu&spaceId=bafyreih4bocrmskuomcrks3sjwpnzxpbxvxwgto23vof3umg2fywdqzjmy.31bq39w6q8ru7&cid=bafybeifc55atash7zlqcjd3fv425bkwl7z5zstcxdilct5hstlng73xwci&key=6kKA3QiwnksqLbpcJ4T6UhmQ5BHzgJUfbpn1QLnkv5Lv * * This script runs in the user’s browser. It reads URL parameters, makes a * single AJAX call…Continue reading