Created
January 24, 2014 16:13
-
-
Save bizzthemes/8600450 to your computer and use it in GitHub Desktop.
Modify 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, only copy the code below | |
//* Add new featured image sizes | |
add_image_size( 'home-featured', 350, 300, true ); | |
add_image_size( 'footer-widget', 255, 200, true ); |
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, only copy the code below | |
//* Modify custom favicon | |
add_filter( 'bizznis_pre_load_favicon', 'custom_favicon_filter' ); | |
function custom_favicon_filter( $favicon_url ) { | |
return 'http://www.mydomain.com/wp-content/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, only copy the code below | |
//* Add a custom Gravatar | |
add_filter( 'avatar_defaults', 'custom_gravatar' ); | |
function custom_gravatar ( $avatar ) { | |
$custom_avatar = get_stylesheet_directory_uri() . '/images/gravatar.png'; | |
$avatar[$custom_avatar] = "Custom Gravatar"; | |
return $avatar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment