Skip to:

How Do I Keep Buddybar/Adminbar Css Out Of The Footer?

  • djsinternet


    I’m running WordPress 3.3.2 with the network activated/subdomain install and BuddyPress 1.5.5 on my own custom theme. I like to keep all the CSS in one ‘Style’ file but BuddyPress appends this link to the footer – link rel=’stylesheet’ id=’bp-admin-bar-css’ href=’http://www.”My Domain Name”.com/wp-content/plugins/buddypress/bp-core/css/buddybar.css?ver=20110723′ type=’text/css’ media=’all’

    I’ve tried to de-register the style, moving it to the header, deleting the wp-enqueue statements in bp-core-buddybar and nothing has manage to remove the extra ‘link rel’ without removing the entire buddybar. Is there an easy way to stop BuddyPress from inserting this link that I’m just missing?

    Other plugins I’m running – bbpress 2.0.2, W3 Total Cache, Add Post Footer, Akismet, All in One SEO and Permalink redirect. I don’t have any custom functions in bp-custom.php yet and I’m on an Apache server.

    How can I prevent BuddyPress from inserting a link rel=stylesheet in the footer of public webpages?

Viewing 1 replies (of 1 total)

  • @mercime


    @djsinternet The adminbar.css is enqueued via wp_head –> “
    and the bp-core-buddypress markup is loaded via wp_footer.

    If you want to remove buddybar.css, add this to `bp-custom.php` or your theme’s `functions.php` file
    `// remove admin bar style
    add_action( ‘bp_init’, ‘djsinternet_remove_adminbar_css’ );
    function djsinternet_remove_adminbar_css() {
    wp_dequeue_style ( ‘bp-admin-bar’);
    wp_dequeue_style ( ‘bp-admin-bar-rtl’);

    Note that when you dequeue buddybar.css, all the adminbar links will be unstyled at the bottom of the webpage unless you upload your own adminbar stylesheet

Viewing 1 replies (of 1 total)
  • The topic ‘How Do I Keep Buddybar/Adminbar Css Out Of The Footer?’ is closed to new replies.
Skip to toolbar