Remove admin-bar WordPress 3.1

Posted: March 18th, 2011 | Author: | Filed under: Wordpress | Comments Off on Remove admin-bar WordPress 3.1

WordPress 3.1 is released and comes with many new features. One of them is the extra admin bar visible at the front-end of your website when user are logged in:

adminbar

Not everyone is happy with this new feature. Here is the way to disable it for project:

Open functions.php and add:

// Disable admin-bar from showing on your blog
wp_deregister_script('admin-bar');
wp_deregister_style('admin-bar');
remove_action('wp_footer','wp_admin_bar_render',1000);

Disable resizing textarea’s in Chrome and Firefox 4

Posted: March 18th, 2011 | Author: | Filed under: CSS | Comments Off on Disable resizing textarea’s in Chrome and Firefox 4

When I was building a new form for a new project today I was having some problems with the resize option for textarea’s in Chrome (update: and Firefox 4). Every form with a textarea messes up the entire website layout by resizing this field.

Example:

textarea {
	resize: none;
}

I know this can be an usability thing for Chrome and Firefox users, but I think when you make your textarea large enough there should be no problem at all.