WordPress 3.1 happens with a brand new function called Admin Bar. This bar is added to your site (both for the dashboard along with the site itself) if you’re logged in. Need to take it off? That’s not hard, just please read on.
1- Paste the following line of code in functions.php file:
remove_action(‘init’, ‘wp_admin_bar_init’);
2- Once the file is saved, the Admin Bar will not be displayed again.
Ever wanted to be capable of automatically add a search field to WP 3.0+ navigation menus? If yes, only have a peek to today’s recipe, you’ll probably love it!
Open your functions.php file, and paste the following code. The search field will be displayed once you saved the file
add_filter(‘wp_nav_menu_items’,'add_search_box’, 10, 2);
function add_search_box($items, $args) {ob_start();
get_search_form();
$searchform = ob_get_contents();
ob_end_clean();$items .= ‘
‘ . $searchform . ‘ ‘;
return $items;
}