Skip to content

Instantly share code, notes, and snippets.

@robneu
robneu / wordpress-typekit-enqueue.php
Last active January 17, 2023 23:04 — forked from FernE97/typekit-enqueue.php
Enqueue typekit fonts to WordPress using wp_enqueue_scripts.
<?php
/**
* Enqueue typekit fonts into WordPress using wp_enqueue_scripts.
*
* @author Robert Neu
* @author Eric Fernandez
* @copyright Copyright (c) 2014, Robert Neu
* @license GPL-2.0+
* @link http://typekit.com
*/

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@robneu
robneu / gist:5937747
Last active December 19, 2015 10:08 — forked from cdils/gist:5430275
<?php
/************************************************
* This is not currently working.
************************************************/
add_action( 'pre_get_posts', 'cd_listing_sort_order' );
/**
* Change the post order for listings
*
* @author Carrie Dils
* @link http://www.billerickson.net/customize-the-wordpress-query/
<?php
/**
* Change the post order for listings
*
* @author Carrie Dils
* @link http://www.billerickson.net/customize-the-wordpress-query/
* @reference http://codex.wordpress.org/Class_Reference/WP_Query
*
*/
jQuery(document).ready(function($) {
$.fn.cleardefault = function() {
return this.focus(function() {
if( this.value == this.defaultValue ) {
this.value = "";
}
}).blur(function() {
if( !this.value.length ) {
this.value = this.defaultValue;
@robneu
robneu / gist:5305057
Last active December 15, 2015 18:39
<?php
function example_image_widget_output( $output, $args, $instance, $id_base ) {
$link_open = '';
$link_close = '';
if ( ! empty ( $instance['link'] ) ) {
$target = ( empty( $instance['new_window'] ) ) ? '' : ' target="_blank"';
$link_open = '<a href="' . esc_url( $instance['link'] ) . '"' . $target . '>';
$link_close = '</a>';
}
<?php
/**
* Template Name: Testimonial Archives
* Description: Used as a page template to show page contents, followed by a
* loop through a CPT archive
*/
/** Remove Post Info */
remove_action('genesis_before_post_content','genesis_post_info');