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
//* Hook site avatar before site title | |
add_action( 'genesis_header', 'sixteen_nine_site_gravatar', 5 ); | |
function sixteen_nine_site_gravatar() { | |
$header_image = get_header_image() ? '<img alt="" src="' . get_header_image() . '" />' : get_avatar( get_option( 'admin_email' ), 224 ); | |
printf( '<div class="site-avatar"><a href="%s">%s</a></div>', home_url( '/' ), $header_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 this entire line | |
// Use this to completely remove pagination on archive pages | |
remove_action( 'genesis_after_endwhile', 'genesis_posts_nav' ); |
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 this entire line with opening tag | |
//Remove post info and post meta on custom post types | |
add_action ( 'get_header', 'cd_remove_post_details'); | |
function cd_remove_post_details() { | |
if ( is_singular( array( 'press', 'filmmaker' ) ) ) { | |
remove_action ( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
remove_action ( 'genesis_entry_footer', 'genesis_post_meta' ); |
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
// Customize the contact information fields available to users | |
add_filter( 'user_contactmethods', 'change_contact_info', 10, 1); | |
function change_contact_info( $contactmethods ) { | |
$contactmethods['website_title'] = 'Website Title'; | |
$contactmethods['twitter'] = 'Twitter'; | |
$contactmethods['facebook'] = 'Facebook'; | |
$contactmethods['linkedin'] = 'Linked In'; | |
return $contactmethods; |
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 this line | |
// Register the widget area | |
genesis_register_sidebar( array( | |
'id' => 'nav-social-menu', | |
'name' => __( 'Nav Social Menu', 'your-theme-slug' ), | |
'description' => __( 'This is the nav social menu section.', 'your-theme-slug' ), | |
) ); | |
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 this line | |
// Adding pagination before and after post entry in Genesis Framework | |
add_action( 'genesis_before_entry', 'cd_prev_next_posts_nav' ); | |
add_action( 'genesis_after_entry', 'cd_prev_next_posts_nav' ); | |
// Add Prev/Next post navigation within a single category | |
function cd_prev_next_posts_nav() { | |
// Check to see if there are previous and next posts |
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 this line | |
/** | |
* Enqueue scripts for a specified Gravity Form (13 = ID) and then | |
* embed Gravity Form at the bottom of single property listings | |
* | |
* http://www.gravityhelp.com/documentation/page/Gform_enqueue_scripts | |
* http://www.gravityhelp.com/documentation/page/Embedding_A_Form#Function_Call | |
* | |
* @author Carrie Dils |