http://stuffandnonsense.co.uk/projects/protection-racket
If you use this GDPR privacy policy template, consider saying thank you with a small donation. https://paypal.me/malarkey/20gbp
Last updated: []
<?php | |
//* Append directives to the virtual robots.txt | |
//* Siteground adds crawl-delay: 10 to robots.txt. Don't use physical robots.txt on SiteGround | |
add_filter( 'robots_txt', 'robots_mod', 10, 2 ); | |
function robots_mod( $output, $public ) { | |
$output .= "Sitemap: https://victorfont.com/sitemap_index.xml"; | |
return $output; | |
} |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
<select name="ADDRESS[country]"> | |
<option value="AF">Afghanistan</option> | |
<option value="AX">Åland Islands</option> | |
<option value="AL">Albania</option> | |
<option value="DZ">Algeria</option> | |
<option value="AS">American Samoa</option> | |
<option value="AD">Andorra</option> | |
<option value="AO">Angola</option> | |
<option value="AI">Anguilla</option> | |
<option value="AQ">Antarctica</option> |
document.addEventListener("DOMContentLoaded", function() { | |
var lazyBackgrounds = [].slice.call(document.querySelectorAll(".lazy-bg")); | |
if ("IntersectionObserver" in window && "IntersectionObserverEntry" in window && "intersectionRatio" in window.IntersectionObserverEntry.prototype) { | |
let lazyBackgroundObserver = new IntersectionObserver(function(entries, observer) { | |
entries.forEach(function(entry) { | |
if (entry.isIntersecting) { | |
entry.target.classList.add("bg-visible"); | |
lazyBackgroundObserver.unobserve(entry.target); | |
} |
<?php | |
/** | |
* Add skip-lazy class to first image in content. | |
*/ | |
add_filter( 'the_content', function( $content ) { | |
// Check if we have no content. | |
if ( empty( $content ) ) { | |
return $content; | |
} |
http://stuffandnonsense.co.uk/projects/protection-racket
If you use this GDPR privacy policy template, consider saying thank you with a small donation. https://paypal.me/malarkey/20gbp
Last updated: []