rebase from live enviornment
This commit is contained in:
16
wp/themes/thbusiness/inc/AsyncHide.php
Normal file
16
wp/themes/thbusiness/inc/AsyncHide.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Google Optimize page-hiding snippet
|
||||
*/
|
||||
function AsyncHide(){
|
||||
?>
|
||||
<style>.async-hide { opacity: 0 !important} </style>
|
||||
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
|
||||
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
|
||||
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
|
||||
})(window,document.documentElement,'async-hide','dataLayer',4000,
|
||||
{'GTM-MJH5WQQ':true});</script>
|
||||
|
||||
|
||||
<?php
|
||||
}
|
||||
Reference in New Issue
Block a user