Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Last active August 29, 2015 14:05
Show Gist options
  • Save zulhfreelancer/33b66b83273cdfc29564 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/33b66b83273cdfc29564 to your computer and use it in GitHub Desktop.
Hide Hellobar Plugin On Specific WordPress Page
<?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