Location: site_wide_header
Tawk.to CORE PHP & JS (Running Parralell with plugin) OK: STABLE with CONFIG added – WITH attribute integration
Basic | Grid-Filter Tastaturbedienbar
document.addEventListener(“DOMContentLoaded”, function () { const filterItems = document.querySelectorAll(‘.vc_grid-filter-item’); filterItems.forEach((item, index) => { item.setAttribute(‘tabindex’, ‘0’); // Fokusierbar per Tab item.setAttribute(‘role’, ‘button’); // Semantik: Rolle als Button item.setAttribute(‘aria-pressed’, item.classList.contains(‘vc_active’) ? ‘true’ : ‘false’); item.setAttribute(‘aria-label’, item.textContent.trim()); // Tastaturbedienung (Enter oder Leertaste) item.addEventListener(‘keydown’, function…Continue reading
CLEAN & MINIFY ASSETS
HTML: CSS: Use CleanCSS or Webpack to minify. cleancss -o style.min.css style.css JS: Use Terser or Webpack. terser main.js -o main.min.js –compress –mangleContinue reading
Impact
snow
Untitled Snippet
Add title above image (Blurbs)
om.Campaign.changeView.done
document.addEventListener(‘om.Campaign.changeView.done’, function(event) { // This event is passed the Campaign object console.log(event.detail.Campaign); } );Continue reading
Adding a Clear Button to Reset All Fields in Your Form
document.addEventListener(‘DOMContentLoaded’, function() { // Change the form ID to match your WPForms form ID var form = document.getElementById(‘wpforms-form-10’); if (form) { var clearButton = document.createElement(‘button’); clearButton.type = ‘button’; clearButton.innerText = ‘Clear’; clearButton.class = ‘custom-btn’; clearButton.style.marginTop = ’10px’; clearButton.classList.add(‘custom-clear-button’); form.appendChild(clearButton); clearButton.addEventListener(‘click’,…Continue reading