1
2
3
4
5
6
7 add_action ('wp_print_scripts', 'my_deregister_cform', 100);
function my_deregister_cform() {
if (!is_page_template('page-contact.php')) {
wp_deregister_script('contact-form-7');
}
}
wp_nav_menu()
December 8, 2012/ Updated: December 8, 2012