-
-
Save davidperezgar/8b7de0f682fc44f911f37dcbdc0d7195 to your computer and use it in GitHub Desktop.
Genesis images.
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 opening php tag shown above. Copy the code shown below. | |
//* Display a custom favicon | |
add_filter( 'genesis_pre_load_favicon', 'cmk_favicon_filter' ); | |
function cmk_favicon_filter( $favicon_url ) { | |
return get_stylesheet_directory_uri().'/images/favicon.png'; | |
} |
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 opening php tag shown above. Copy the code shown below. | |
//* Display a custom Gravatar | |
add_filter( 'avatar_defaults', 'sp_gravatar' ); | |
function sp_gravatar ($avatar) { | |
$custom_avatar = get_stylesheet_directory_uri() . '/images/gravatar.png'; | |
$avatar[$custom_avatar] = "Custom Gravatar"; | |
return $avatar; | |
} |
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 opening php tag shown above. Copy the code shown below. | |
//* Add new featured image sizes | |
add_image_size( 'home-bottom', 150, 100, TRUE ); | |
add_image_size( 'home-top', 400, 200, TRUE ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment