Last active
September 26, 2016 11:17
-
-
Save studiopress/5706731 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', 'sp_favicon_filter' ); | |
function sp_favicon_filter( $favicon_url ) { | |
return 'http://www.mydomain.com/wp-content/themes/genesis/images/favicon.ico'; | |
} |
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