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
*/
<?php
/**
* Functions
*
* @package BE_Genesis_Child
* @since 1.0.0
* @link https://github.com/billerickson/BE-Genesis-Child
* @author Bill Erickson <bill@billerickson.net>
* @copyright Copyright (c) 2011, Bill Erickson
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
@robneu
robneu / time.php
Last active March 25, 2017 19:36 — forked from gleddy/time.php
cookbook snippet
// customize single post header content for dx5
add_action( 'genesis_entry_header', 'dx5_do_post_header');
function dx5_do_post_header() {
genesis_markup( array(
'html5' => '<header %s>',
'context' => 'dx5-post-heading',
) );
@robneu
robneu / .htaccess
Last active February 1, 2017 20:47 — forked from brichards/.htaccess
Tell Apache to serve missing images from a remote server. Props http://stackoverflow.com/questions/5130410/modrewrite-to-another-server-if-file-image-is-not-found
# BEGIN serve images from production
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.*\.(js|css|png|jpe?g|gif|ico|svg)) http://example.com/$1 [NC,P,L]
</IfModule>
# END serve images from production
@robneu
robneu / plugin.php
Last active December 30, 2015 19:09 — forked from jeherve/plugin.php
<?php
/**
* An array of Jetpack modules which will be whitelisted.
*
* This whitelist contains a list of all Jetpack modules which we would like users
* to have access to. Anything not listed here will be programmatically disabled.
*
* @author FAT Media, LLC
* @link http://wpbacon.com/disable-jetpack-modules/
@robneu
robneu / gist:7744816
Last active December 29, 2015 23:48 — forked from srikat/gist:7744576
<?php
add_action ( 'genesis_entry_header', 'sk_show_page_excerpt' );
function sk_show_page_excerpt() {
$post = get_post( get_the_ID() );
$the_excerpt = $post->post_excerpt;
if ( ! is_page() || empty( $the_excerpt ) ) {
return;
}
echo $the_excerpt;
<?php
/**
* Template Name: FitFluential Finds Archives
* Description: This is a page template to show the FitFluential Finds CPT
*
* @package FitFluential
* @subpackage Genesis
* @copyright Copyright (c) 2013, WP SIte Care, LLC
* @license GPL-2.0+
* @since 1.0.0
@robneu
robneu / full-content-archives-genesis.php
Last active December 24, 2015 18:29 — forked from srikat/functions.php
Conditionally display the full content on specific categories using the Genesis Framework.
<?php
add_action( 'genesis_before_loop', 'prefix_full_content_specific_categories' );
/**
* Filter the output of specific categories so that they display the full
* content regarldess of what's selected in the Genesis theme options panel.
*
* @author FAT Media <http://youneedfat.com>
* @copyright Copyright (c) 2013, FAT Media, LLC
* @license GPL-2.0+
* @uses is_category <http://codex.wordpress.org/Function_Reference/is_category>

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/