Skip to content

Instantly share code, notes, and snippets.

@BrianBourn
Last active August 29, 2015 13:57
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 BrianBourn/9904520 to your computer and use it in GitHub Desktop.
Save BrianBourn/9904520 to your computer and use it in GitHub Desktop.
Reference links for WordCamp San Diego 2015
<?php // Do not include opening php tag if copy & pasting!
// Add a headline after the header
add_action( 'genesis_after_header', 'bourncreative_after_header_text', 15 );
function bourncreative_after_header_text () {
echo '<h2>This Is A Heading Two</h2>';
}
// Reposition the secondary navigation
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );
<?php // Do not include opening php tag if copy & pasting!
// Change comments gravatar size
add_filter( 'genesis_comment_list_args', 'bourncreative_avatar_size' );
function bourncreative_avatar_size($args) {
$args['avatar_size'] = 100;
return $args;
}
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') );
}
// WordPress Codex References
https://codex.wordpress.org/Child_Themes
https://codex.wordpress.org/Theme_Development
https://codex.wordpress.org/Template_Hierarchy
https://codex.wordpress.org/Conditional_Tags
// Genesis Development Resources
http://genesistutorials.com/visual-hook-guide/
http://wordpress.org/plugins/genesis-visual-hook-guide/
http://www.genesisframework.com/markup.php
http://my.studiopress.com/snippets/
// Popular Genesis Plugins
http://wordpress.org/plugins/genesis-simple-hooks/
http://wordpress.org/plugins/genesis-enews-extended/
http://wordpress.org/plugins/genesis-simple-edits/
http://wordpress.org/plugins/genesis-simple-sidebars/
http://wordpress.org/plugins/genesis-404-page/
http://wordpress.org/plugins/genesis-simple-menus/
http://wordpress.org/plugins/genesis-simple-edits/
// Social
Facebook
https://www.facebook.com/groups/genesiswp/
Slack
tinyurl.com/genesisslack/
Google+
https://plus.google.com/u/0/communities/113206330486200023679
// Schema Markup Reference
http://schema.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment