Skip to content

Instantly share code, notes, and snippets.

@WebEndevSnippets
Created January 24, 2014 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WebEndevSnippets/8601522 to your computer and use it in GitHub Desktop.
Save WebEndevSnippets/8601522 to your computer and use it in GitHub Desktop.
Genesis: Add content to Genesis Sandbos Featured Content widget, by widget instance
add_action( 'gsfc_before_post_content', 'we_before_gsfc_quote_content' );
/**
* Add lead-in content to GSFC widget (by instance)
*/
function we_before_gsfc_quote_content( $instance ) {
if ( $instance['custom_field'] == 'writing-quotes' ) {
echo 'boo';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment