Skip to content

Instantly share code, notes, and snippets.

@bizzthemes
Created January 24, 2014 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bizzthemes/8600450 to your computer and use it in GitHub Desktop.
Save bizzthemes/8600450 to your computer and use it in GitHub Desktop.
Modify images
<?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 );
<?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';
}
<?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