This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This code is based in Mathew Horne blog post: https://matthewhorne.me/defer-async-wordpress-scripts/ & | |
// Ricardo Gonçalves https://gist.github.com/ricardobrg/158add836a079a00b46574dbe76c9878 | |
//function to add async attribute | |
function add_async_attribute($tag, $handle) { | |
$scripts_to_async = array('my-js-handle-async', 'another-handle-async'); | |
//check if this script is in the array | |
if (in_array($handle, $scripts_to_async)){ | |
//return with async |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##above is your settings## | |
[Custom Colors] | |
01=#000000 | |
02=#0A246A | |
03=#3A6EA5 | |
04=#52A5F8 | |
05=#0D8206 | |
06=#608020 | |
07=#648000 | |
08=#A46000 |