Admin Bar CSS left over after removal

To completely remove the Admin bar deregister the js and css using wp_degregister_script and remove the action. if (!is_admin() && !current_user_can(‘add_users’)){ wp_deregister_script( ‘admin-bar’ ); wp_deregister_style( ‘admin-bar’ ); remove_action(‘wp_footer’,’wp_admin_bar_render’,1000); }

Open Admin bar “Visit site” in a new window

This is actually easily done. I just adapted the code from this answer add_action( ‘admin_bar_menu’, ‘customize_my_wp_admin_bar’, 80 ); function customize_my_wp_admin_bar( $wp_admin_bar ) { //Get a reference to the view-site node to modify. $node = $wp_admin_bar->get_node(‘view-site’); //Change target $node->meta[‘target’] = ‘_blank’; //Update Node. $wp_admin_bar->add_node($node); } To change any other item in the menu bar you just … Read more

Removing admin bar from wordpress dashboard

if (!function_exists(‘disableAdminBar’)) { function disableAdminBar(){ remove_action( ‘admin_footer’, ‘wp_admin_bar_render’, 1000 ); function remove_admin_bar_style_backend() { echo ‘<style>body.admin-bar #wpcontent, body.admin-bar #adminmenu { padding-top: 0px !important; }</style>’; } add_filter(‘admin_head’,’remove_admin_bar_style_backend’); } } add_filter(‘admin_head’,’remove_admin_bar_style_backend’); Source: http://wp.tutsplus.com/tutorials/how-to-disable-the-admin-bar-in-wordpress-3-3/ OR, for both front and back end… if (!function_exists(‘disableAdminBar’)) { function disableAdminBar(){ remove_action( ‘admin_footer’, ‘wp_admin_bar_render’, 1000 ); // for the admin page remove_action( ‘wp_footer’, ‘wp_admin_bar_render’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)