Last active
August 29, 2015 13:57
-
-
Save BrianBourn/9904520 to your computer and use it in GitHub Desktop.
Reference links for WordCamp San Diego 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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') ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template Name: Gallery Page | |
*/ | |
// Change Schema attribute To ImageGallery from CreativeWork for custom gallery page | |
add_filter( 'genesis_attr_content', 'bourncreative_content_attributes' ); | |
function bourncreative_content_attributes( $attributes ) { | |
$attributes['itemtype'] = 'http://schema.org/ImageGallery'; | |
return $attributes; | |
} | |
genesis(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
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