Year footer update
function year_shortcode() { $year = date_i18n (‘Y’); return $year; } // register shortcode add_shortcode(‘year’, ‘year_shortcode’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
function year_shortcode() { $year = date_i18n (‘Y’); return $year; } // register shortcode add_shortcode(‘year’, ‘year_shortcode’);Continue reading
jQuery(document).ready(function ($) { function reorderMobileHeaderBar(container) { const branding = container.find(‘.mobile-branding’); const widgets = container.find(‘.mobile-mini-widgets’); const navigation = container.find(‘.mobile-navigation’); if (branding.length && widgets.length && navigation.length) { container.append(branding); container.append(widgets); container.append(navigation); } } const observer = new MutationObserver(function (mutationsList, obs) { for (const…Continue reading
jQuery(document).ready(function ($) { // Dein ursprünglicher Code bleibt unverändert document.querySelectorAll(‘.masthead .branding img, .mobile-branding img, .masthead .branding .sticky-logo img, .mobile-branding .sticky-logo img, .masthead .branding .preload-me, .mobile-branding .preload-me’).forEach((item) => { item.setAttribute(‘alt’, ‘Das Logo von movatix verlinkt zur Startseite’); }); // Ergänzung: MutationObserver…Continue reading
// aria-label von Scroll-to-top-Button anpassen jQuery(document).ready(function() { const items = document.querySelectorAll(‘.scroll-top’); items.forEach(item => { item.setAttribute(‘aria-label’, ‘Zum Seitenanfang springen’); }); });Continue reading
jQuery(document).ready(function() { const items = document.querySelectorAll(‘.fancy-date a, .post-entry-content .entry-title a, .post-thumbnail img, img, .data-link’); items.forEach(item => { item.removeAttribute(‘title’); }); });Continue reading
/** * Opens specific WordPress admin menu items in a new tab. * Handles both top-level items (by ID) and submenu items (by parent ID and text). ****** * HOW TO USE: * * 1. Import the code Snippet. *…Continue reading
/* Theme My Login */ /* You are now logged out. */ .tml .tml-action-confirmaction .success, .tml .tml-error, .tml .tml-message, .tml .tml-success { border-left: 4px solid #800000; /* change the color here to compliment your site */ box-shadow: 1px 1px 2px…Continue reading
/* Styling the Cookies plugin by CookiesYes * Authored by John Foliot – Foliot Digital Accessibility Services (https://fdas.ca) */ /* * This plugin is a bugger to style – why I don’t know and I never bothered to investigate. The…Continue reading