תיקון לפלאגין popup maker

תיקון להפצת הפופאפ לחלק העליון של האתר בעזרת CSS + תוספות

#popmake-3901,#popmake-3918{background-color:#fff !important}
.pum-container.popmake.theme-3883{
    background:none;
    box-shadow: none;
}
.pum.pum-overlay {
    background: #2020208c;
}
html.pum-open.pum-open-overlay, html.pum-open.pum-open-overlay.pum-open-fixed .pum-overlay {
    overflow: visible !important;
}
html.pum-open.pum-open-overlay.pum-open-scrollable .pum-overlay.pum-active {
    overflow-y: hidden !important;
}

קוד JS עבור הקפצת פופאפ לפני יציאה

add_action('wp_footer','gs_popup');
function gs_popup(){
?>
<script>
setTimeout(function() { 
document.addEventListener("mouseleave", function(e){
    if( e.clientY < 0 && jQuery('.alrady-oppened').length <= 0 )
    {
         if(jQuery('#popmake-1284').length){
              jQuery('#popmake-1284').popmake('open');
			  jQuery('#popmake-1284').addClass('alrady-oppened');
         }
    }
}, false);
}, 15000);	
</script>
<?php
} }
    }
}