Last active
August 29, 2015 14:05
-
-
Save zulhfreelancer/33b66b83273cdfc29564 to your computer and use it in GitHub Desktop.
Hide Hellobar Plugin On Specific WordPress Page
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 short code can help you to hide Hellobar plugin on specific WordPress page. | |
Just copy and paste this code into your 'hellobar_wp_plugin.php' file inside the 'hellobar_wp_plugin' folder. | |
Make sure the script URL is full and correct. | |
*/ | |
function add_hellobar_script() { | |
// 1326 is the page ID | |
if (!is_page('1326')) { | |
// your full Hellobar script | |
echo '<script src="//s3.amazonaws.com/scripts.hellobar.com/XXX.js" type="text/javascript"></script>'; | |
} } | |
add_action('wp_footer', 'add_hellobar_script'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment