Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_print_styles', 'shoropio_deregister_styles', 100 );
- function shoropio_deregister_styles() {
- if ( ! is_page( 'contactenos' ) ) {
- wp_deregister_style( 'contact-form-7' );
- }
- }
- add_action( 'wp_print_scripts', 'shoropio_deregister_javascript', 100 );
- function shoropio_deregister_javascript() {
- if ( ! is_page( 'contactenos' ) ) {
- wp_deregister_script( 'contact-form-7' );
- }
- }
Add Comment
Please, Sign In to add comment