WordPress Function to Collection of quick function-php edits

Collection of quick function.php edits

I have a few awesome tweaks in functions.php as well. Found most of these by searching for them over the years.

Excerpt Ending

function new_excerpt_more($more) {
    return '...';
}
add_filter('excerpt_more', 'new_excerpt_more');

Replace WP Admin Logo

function new_admin_logo() {
  echo '<style type="text/css">#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/admin_logo.png) !important; }</style>';
}
add_action('admin_head', 'new_admin_logo');

Custom Favicon WP-Admin

function admin_favicon() {
 echo '<link rel="shortcut icon" type="image/x-icon" href="' . get_bloginfo('template_directory') . '/images/favicon.ico" />';
}
add_action( 'admin_head', 'admin_favicon' );

Custom Admin Footer

function custom_admin_footer() {
echo 'Welcome to my blog! No More Documentation Links!';
}
add_filter('admin_footer_text', 'custom_admin_footer');

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *