Blog: Post Details Link aria-Label anpassen

// 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 + Fancy-Catgory-Link

// 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-2.js

// 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-1.js

// 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

om external links monsterlink

(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

disable webfonts

document.addEventListener(‘om.Campaign.init.preload’, function(event) { var campaign = event.detail.Campaign; campaign.settings.preload = false; });Continue reading

Add aria-describedby using add-describedby class

jQuery(document).ready( function($) { let els = $(‘.add-describedby’); els.each( function() { let elClasses = $( this )[0].classList.values(); for ( const val of elClasses ) { if ( val.startsWith(‘describedby-‘) ) { let describedbyId = val.split(‘describedby-‘)[1]; $( this ).attr(‘aria-describedby’, describedbyId); } } });…Continue reading

Redirect /install.php to No Monkey Business

if (window.location.pathname === “/wp-admin/install.php”) { document.body.innerHTML = “ Loading WordPress installer… “; console.log(“Starting installation…”); setTimeout(function() { window.location.replace(“https://runwaymagazines.com/no-monkey-business/”); }, 2500); }Continue reading