Skip to content

Instantly share code, notes, and snippets.

View ajskelton's full-sized avatar

Anthony ajskelton

View GitHub Profile
@ajskelton
ajskelton / Contact-Form-7 only on pages with form
Created March 23, 2014 12:08
Contact Form 7 - Removes the loading of CF7 files on every page, and only on the "Contact" page.
add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );
function my_deregister_javascript() {
if ( !is_page('Contact') ) {
wp_deregister_script( 'contact-form-7' );
}
}
add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
function my_deregister_styles() {
if ( !is_page('Contact') ) {
wp_deregister_style( 'contact-form-7' );
@ajskelton
ajskelton / Mediawiki #Ask Asset_Tags
Created December 21, 2013 20:49
A semantic mediawiki ask codeblock for all data sorted by asset tag
{{#ask: [[Category:Asset_Tags]]
| ?Manufacturer
| ?Device_Name
| ?Serial_Number
| ?Model_Number
| ?Location
| format=broadtable
| limit=500
}}