Last active
January 27, 2021 10:08
-
-
Save iamsathyaseelan/cba7a3cb7f582441fe46516fc2502e94 to your computer and use it in GitHub Desktop.
Show the Retainful refferal window in particiular pages (Home and checkout pages)
This file contains hidden or 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 | |
add_action('wp_footer',function(){ | |
$display = "none"; | |
if(is_front_page() || is_checkout()){ | |
$display = "block"; | |
} | |
echo "<style> | |
.rtl-launcher{ | |
display:{$display} !important; | |
} | |
</style>"; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment