I hereby claim:
- I am pmgllc on github.
- I am jpetersen (https://keybase.io/jpetersen) on keybase.
- I have a public key whose fingerprint is D957 C060 7B64 8FE3 F232 64E5 3ED1 1735 7DFD 3079
To claim this, I am signing this object:
<?php | |
//* Deregister WP 4.2 Emoji Support | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | |
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | |
remove_action( 'admin_print_styles', 'print_emoji_styles' ); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
I hereby claim:
To claim this, I am signing this object:
<?php | |
//* Load Google fonts | |
add_action( 'wp_enqueue_scripts', 'pmg_load_google_fonts' ); | |
function pmg_load_google_fonts() { | |
wp_enqueue_style( | |
'google-fonts', | |
'http://fonts.googleapis.com/css?family=Merriweather|Open+Sans', | |
array(), | |
CHILD_THEME_VERSION |
<?php | |
add_action('pre_get_posts', 'remove_issue_date_tax' ); | |
function remove_issue_date_tax( $wp_query ) { | |
global $wp_query; | |
if( is_page( 'blog' ) ) { | |
get_query_var('tax', '-', 'issue-date'); | |
} | |
} |
<?php | |
// Unhook Genesis Loop and use custom loop | |
remove_action( 'genesis_loop', 'genesis_do_loop'); | |
add_action( 'genesis_loop', 'not_issues_loop'); | |
function not_issues_loop() { | |
global $wp_query; | |
$args = array( | |
'posts_per_page' => 20, | |
'post_type' => 'post', |
<?php | |
// Display the featured image, with custom image size | |
add_action( 'genesis_entry_content', 'show_featured_image'); | |
function show_featured_image() { | |
$args = array( 'size' => 'rss' ); | |
return genesis_image($args); | |
} |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
jQuery('#Submit').click(function() { | |
var splitName = jQuery('#Contact0FirstName').val(); | |
var names = splitName.split(' '); | |
var firstName = names.splice(0,1); | |
var lastName = names.join(' '); | |
jQuery('#Contact0FirstName').val(firstName); | |
jQuery('#Contact0LastName').val(lastName); | |
jQuery('form').submit(); |
<script type="text/javascript"> | |
jQuery(document).ready(function($) { | |
jQuery('#Submit').click(function() { | |
var splitName = jQuery('#Contact0FirstName').val(); | |
var names = splitName.split(' '); | |
var firstName = names.splice(0,1); | |
var lastName = names.join(' '); | |
jQuery('#Contact0FirstName').val(firstName); | |
jQuery('#Contact0LastName').val(lastName); | |
jQuery('form').submit(); |