return true
return true;Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
return true;Continue reading
document.addEventListener(‘DOMContentLoaded’, function () { // Select all span elements inside the ul with the class ‘donation-amounts’ const amountSpans = document.querySelectorAll(‘.donation-amounts span.amount’); amountSpans.forEach(span => { // Get the current text content let value = span.textContent; // Find the index of the…Continue reading
jQuery(document).ready(function() { const items = document.querySelectorAll(‘.mobile-navigation .dt-mobile-menu-icon’); items.forEach(item => { item.setAttribute(‘aria-label’, ‘Menü öffnen’); }); // Ergänzung: MutationObserver für nachträglich eingefügte Menü-Icons const observer = new MutationObserver((mutationsList) => { mutationsList.forEach(mutation => { mutation.addedNodes.forEach(node => { if (node.nodeType === 1) { //…Continue reading
// Blog: Link zum Artikel aria-label anpassen: “Weiterlesen über” + Artikeltitel jQuery(document).ready(function($) { $(“.post-details.details-type-link”).each(function() { let ariaLabel = $(this).attr(“aria-label”); if (ariaLabel && ariaLabel.startsWith(“Read more about “)) { let newLabel = ariaLabel.replace(“Read more about “, “Weiterlesen über “); $(this).attr(“aria-label”, newLabel); }…Continue reading
// Post Thumbail Rollover Link entfernen, weil redundant // + Datums-Link jQuery(document).ready(function() { jQuery(“.post-thumbnail-rollover, .fancy-date a, .fancy-categories a, .single-related-posts .mini-post-img a, .blog-media.wf-td a”).each(function() { var anchor = jQuery(this); var newSpan = jQuery(““); // Ersetze das durch ein newSpan.attr(“class”, anchor.attr(“class”)); //…Continue reading
// Floating MonsterLink Style 2 jQuery(document).ready(function ($) { //* Animate Floating MonsterLink into view on page load $(‘.floating-monsterlink.style2’).addClass(‘show’); //* Animate out of view function function closeFloatingMonsterLink(e) { e.preventDefault(); $(‘.floating-monsterlink.style2’).removeClass(‘show’); } //* Triggers that run closeFloatingMonsterLink function // run closeFloatingMonsterLink when…Continue reading
// Floating MonsterLink Style 1 jQuery(document).ready(function ($) { //* Animate Floating MonsterLink into view on page load $(‘.floating-monsterlink.style1’).addClass(‘show’); //* Animate out of view function function closeFloatingMonsterLink(e) { e.preventDefault(); $(‘.floating-monsterlink.style1’).removeClass(‘show’); } //* Triggers that run closeFloatingMonsterLink function // run closeFloatingMonsterLink when…Continue reading
(function(window, document) { // Your campaign’s UNIQUE ID var campaignSlug = ‘pcoamlfqsv7jeervep0b’; // … the rest of the code, omitted for clarity })(window, document);Continue reading
(function(window, document) { // Your campaign’s UNIQUE ID var campaignSlug = ‘YOUR-UNIQUE-ID’; // Helper to get an anchor element. var getLink = function(element) { var parent = element; while (parent && ‘A’ !== parent.tagName) { parent = parent.parentNode; } return…Continue reading
document.addEventListener(‘om.Campaign.init.preload’, function(event) { var campaign = event.detail.Campaign; if ({slug} === campaign.id) { campaign.settings.preload = false; } });Continue reading