Run on Specific Pages
-
Hi π
I’m trying to run your plugin only on certain pages. For example my register and contact pages.I’m using this code in functions:
if( is_page( array(‘register’, ‘contact-us’) ) )
return;
wp_dequeue_script( ‘wp-bruiser-public-script’ );
wp_deregister_script( ‘wp-bruiser-public-script’ );
}
add_action( ‘wp_enqueue_scripts’, ‘deregister_wpbruiser_scripts’, 0);But “?gdbc-client=3.1.4-1488904436214” is loading still everywhere.
What’s wrong and how can I fix this?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Run on Specific Pages’ is closed to new replies.