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 Simple Sidebar Functionality To Author Archives**/ | |
add_action( 'get_header', 'bourncreative_simplesidebars_check' ); | |
function bourncreative_simplesidebars_check() { | |
if ( function_exists( 'ss_sidebars_init' ) && is_active_sidebar( 'caterina-rando-sidebar' ) ) { | |
remove_action( 'genesis_sidebar_alt', 'ss_do_sidebar_alt' ); // Unhook Genesis Simple Sidebars | |
add_action( 'genesis_sidebar_alt', 'bourncreative_author_sidebar_alt' ); // Add Back Custom Sidebar Created With Simple Sidebars | |
function bourncreative_author_sidebar_alt() { | |
dynamic_sidebar( 'caterina-rando-sidebar' ); |
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 | |
//***Remove WordPress' Extra 10px Of Width On Images With Captions**/ | |
add_filter( 'img_caption_shortcode_width', 'bourncreative_remove_caption_width' ); | |
function bourncreative_remove_caption_width( $width ) { | |
return $width - 10; | |
} |
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 | |
add_filter( 'theme_page_templates', 'bourncreative_remove_page_templates' ); | |
/** | |
* Remove Genesis blog and archive templates from page templates dropdown. | |
* | |
* @author Brian Bourn | |
* @link http://www.bourncreative.com/remove-genesis-blog-archive-page-templates/ | |
* | |
* @param array $templates List of templates. |
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 |