Skip to content

Instantly share code, notes, and snippets.

View stefsullrew's full-sized avatar

Stephanie Rewis stefsullrew

  • Salesforce
  • United States
View GitHub Profile
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
add_action( 'genesis_entry_header', 'child_post_info' );
/**
* Custom Post-Info with Google Rich Snippet support
* @link https://gist.github.com/gregrickaby/2838395
* @author Greg Rickaby
* @since 1.0.0
*/
function child_post_info() {
if ( 'portfolio' == get_post_type() || is_page() )
@stefsullrew
stefsullrew / Sass function
Created December 22, 2014 15:52
Sass vs Less - context function
@function calc-em($target-px, $context) {
@return ($target-px / $context) * 1em;
}