This file contains 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( 'genesis_header', 'sample_genesis_header' ); | |
/** | |
* Callback for Genesis 'genesis_header' action. | |
* | |
* If on a single post or page, display the post or page title within the header area. | |
* | |
* @return None | |
*/ |
This file contains 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_filter( 'wp_nav_menu_items', 'custom_nav_item', 10, 2 ); | |
/** | |
* Callback for Genesis 'wp_nav_menu_items' filter. | |
* | |
* Add custom left nav item to Genesis primary menu. | |
* | |
* @package Genesis | |
* @category Nav Menu |
This file contains 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
/* | |
Left Aligned Primary Nav Extra | |
---------------------------------------------------------------------------------------------------- */ | |
.genesis-nav-menu > .left { | |
display: inline-block; | |
float: left; | |
list-style-type: none; | |
text-transform: uppercase; | |
} |
This file contains 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_filter( 'genesis_attr_site-footer', 'genesis_attributes_site_footer' ); |
This file contains 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 | |
genesis_register_sidebar( array( | |
'id' => 'genesis-box', | |
'name' => __( 'Genesis Box', 'themename' ), | |
'description' => __( 'This is a widget area that can be placed after the post', 'themename' ), | |
) ); | |
add_action( 'genesis_entry_footer', 'sp_genesis_box', 9 ); | |
/** |
This file contains 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 the default Genesis core callbacks | |
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 ); | |
remove_action( 'genesis_before_post_title', 'genesis_do_post_format_image' ); | |
// add custom callbacks | |
add_action( 'genesis_entry_header', 'custom_do_post_format_image', 4 ); | |
add_action( 'genesis_before_post_title', 'custom_do_post_format_image' ); | |
/** |
This file contains 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 the default Genesis callbacks | |
remove_action( 'genesis_entry_header', 'genesis_do_post_format_image', 4 ); | |
remove_action( 'genesis_before_post_title', 'genesis_do_post_format_image' ); | |
add_action( 'genesis_entry_header', 'custom_genesis_do_post_format_image', 4 ); | |
add_action( 'genesis_before_post_title', 'custom_genesis_do_post_format_image' ); | |
/** | |
* Callback for Genesis 'genesis_entry_header' or 'genesis_before_post_title' action. |
This file contains 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 | |
// functions.php | |
add_filter( 'genesis_attr_entry', 'custom_genesis_attr_entry' ); | |
/** | |
* Callback for Genesis 'genesis_attr_entry' filter. | |
* | |
* Change the current entry's 'itemprop' and 'itemtype' attributes to | |
* use the Article microdata schema from BlogPosting. | |
* |
This file contains 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_filter( 'genesis_post_info', 'jspt_memoriam_post_info_filter' ); | |
/** | |
* Callback for Genesis 'genesis_post_info' filter. | |
* | |
* @param string $post_info The current post object info. | |
* @return string $post_info The current post object info. | |
*/ | |
function jspt_memoriam_post_info_filter( $post_info ) { |
This file contains 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 the <?php tag if your functions.php file already has one. | |
* In response to Genesis support forums thread; | |
* http://www.studiopress.com/forums/topic/shortcode-with-custom-loop-in-page-affecting-search-results/ | |
*/ | |
add_action( 'genesis_setup', 'jspt_genesis_setup' ); | |
/** | |
* Callback for Genesis 'genesis_setup' action. |
OlderNewer