• Hi

    I am developing a WP/BP-site where every visitor & users sees the admin-bar. Could someone tell me how to completely remove the default-styling of the adminbar? I want to style it myself and don’t want to fight against an existing CSS.

    I’ve added add_theme_support( 'admin-bar', array( 'callback' => '__return_false') ); to my themes functions.php but that did not change a thing.

    Thanks!
    Raphael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter RaphaelJeger

    (@raphaeljeger)

    Anyone? Pleeeeeeaaasseee?

    Thread Starter RaphaelJeger

    (@raphaeljeger)

    wp_dequeue_style( ‘admin-bar’ ); does not work

    edit & solution

    but this does:

    add_action( 'wp_default_styles' , 'remove_admin_bar' );
    function remove_admin_bar( $wp_styles ) {
        $wp_styles->remove('admin-bar');
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove "admin-bar.css" completely’ is closed to new replies.