Dynamic copyright year using HTML
Copyright ©Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
Copyright ©Continue reading
window.dataLayer = window.dataLayer || []; dataLayer.push({‘en_id’: ‘ENTESTID’, ‘event’:’en_id_set’});Continue reading
var myInterval = setInterval(checkForJquery, 50); function checkForJquery() { if (window.jQuery) { clearInterval(myInterval); fixPageTitles(); } } function fixPageTitles() { /* find the page title */ var originalString = jQuery(‘h1.elementor-heading-title.elementor-size-default’).text(); /* replace raw special characters with the proper HTML entity */ if…Continue reading
// This will output “Copyright © 2024” (or the current year) in the footer automatically. $copyright = “Copyright © ” ; $current_year = date( ‘Y’ ) ; $copyright_year = $copyright . $current_year ; // Add CSS classes for styling. For…Continue reading
document.addEventListener(“DOMContentLoaded”, function() { let breadcrumbs = document.querySelectorAll(‘.breadcrumb li’); let containsR19 = false; for (let i = 0; i < breadcrumbs.length; i++) { if (breadcrumbs[i].classList.contains('active') && (breadcrumbs[i].textContent.includes('R19') || breadcrumbs[i].textContent.includes('R-19') || breadcrumbs[i].textContent.includes('R 19'))) { containsR19 = true; break; } } if (containsR19)…Continue reading
document.addEventListener(“DOMContentLoaded”, function() { let breadcrumbs = document.querySelectorAll(‘.breadcrumb li’); let containsR19 = false; // Check if the active breadcrumb contains an R19 tag. for (let i = 0; i < breadcrumbs.length; i++) { if (breadcrumbs[i].classList.contains('active') && (breadcrumbs[i].textContent.includes('R19') || breadcrumbs[i].textContent.includes('R-19') || breadcrumbs[i].textContent.includes('R…Continue reading
var featuredImageInput = document.getElementsByName(‘madara-featured-image’)[0]; //user settings if (featuredImageInput) { featuredImageInput.addEventListener(‘change’, function (e) { var file = e.target.files[0]; if (file.size > 1000 * 1024) { // File size in bytes, 1MB in this example alert(‘File size must be less than 1MB.’);…Continue reading
var madaraBadge = document.querySelector(‘select[name=”madara-manga-badge”]’); var madaraStatus = document.querySelector(‘select[name=”madara-manga-status”]’); if(madaraBadge){ madaraBadge.addEventListener(‘change’, function(e) { if (e.target.value !== ‘completed’ && e.target.value !== ”) { alert(‘Invalid choice’); e.target.value = ”; } if(madaraStatus){ if(e.target.value == ‘completed’){ madaraStatus.value = ‘end’; } else { madaraStatus.value = ‘on-going’…Continue reading