Skip to content

Instantly share code, notes, and snippets.

@robneu
robneu / clear-all-floats-genesis.css
Last active December 19, 2015 10:39
Genesis 2.0 has added a handy bit of CSS to clear all the floats all the time. This makes clearing floats constantly via extra clear divs obsolete and is just another reason why Genesis is awesome.
/* Float Clearing
--------------------------------------------- */
address:before, address:after,
article:before, article:after,
aside:before, aside:after,
audio:before, audio:after,
blockquote:before, blockquote:after,
canvas:before, canvas:after,
dd:before, dd:after,
@robneu
robneu / doing_it_wrong.php
Created July 16, 2013 02:17
Why? Just... Why??
<?php
/*
Plugin Name: Optimise Opengraph and Microdata Generator for SEO
Plugin URI: http://www.tinbaohiem.com
Description: WprdPress Plugin to add tags to head of your site good for SEO and Facebook Opengraph and Google Schema
Version: 1.0
Author: Lamvt
Author URI: http://www.tinbaohiem.com.com/
License: GPL3
*/
<?php
add_action( 'genesis_entry_content', 'theme_prefix_address' );
/**
*
* Display an address using
* Genesis column classes and ACF.
*
* @author Angie Meeker
* @uses Advanced Custom Fields
*/

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 / style-2.css
Last active December 20, 2015 22:09
Genesis mobile menu styles for Genesis 2.0 and above.
/*
Mobile Menu for Genesis 2.0
Version: 2.0.0
License: GPL-2.0+
License URI: http://www.opensource.org/licenses/gpl-license.php
*/
/* Primary Navigation
--------------------------------------------- */
@robneu
robneu / genesis-2-0-structural.css
Last active December 21, 2015 05:39
Genesis 2.0 structural layout CSS Changes. xHTML selectors are listed on the left and the new HTML5 selectors are listed on the right.
/* Structural Changes
--------------------------------------------- */
#wrap .site-container
#inner .site-inner
#content-sidebar-wrap .content-sidebar-wrap
#content .content
@robneu
robneu / genesis-2-0-header.css
Last active December 21, 2015 05:39
Genesis 2.0 header CSS Changes. xHTML selectors are listed on the left and the new HTML5 selectors are listed on the right.
/* Header Changes
--------------------------------------------- */
#header .site-header
#title-area .title-area
#title .site-title
#description .site-description
@robneu
robneu / genesis-2-0.css
Created August 17, 2013 22:54
All of the Genesis 2.0 CSS Changes. xHTML selectors are listed on the left and the new HTML5 selectors are listed on the right.
/* Structural
--------------------------------------------- */
#wrap .site-container
#inner .site-inner
#content-sidebar-wrap .content-sidebar-wrap
#content .content
/* Header
--------------------------------------------- */
#header .site-header
@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
*/
@robneu
robneu / wordpress-change-category-order.php
Last active December 22, 2015 02:18
Use pre_get_posts to change the ordering of category posts to the title.
<?php
add_action( 'pre_get_posts', 'prefix_change_category_order' );
/**
* Customize category Query using pre_get_posts.
*
* @author FAT Media <http://youneedfat.com>
* @copyright Copyright (c) 2013, FAT Media, LLC
* @license GPL-2.0+
* @todo Change prefix to theme or plugin prefix.