Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Buddypress 1.2.6 adds extra padding-top

Possibly because there are is a mix of issues, if you referring to the remaining padding-top then that is a property being declared in default.css on the #header ruleset and will be there regardless of the state of the adminbar:

I have only time to suggest a quick fix for that in lieu of a new ticket raised on the overall issue for 1.3

You can try dropping this into a function.php file in a child theme (you will need to add opening php tag as your file structure dictates)
`
function cancel_header_padding_for_no_adminbar() {
if(defined( ‘BP_DISABLE_ADMIN_BAR’ ) || $bp->doing_admin_bar = false) ?>

/**/
<?php
}
add_action( ‘wp_head’, ‘cancel_header_padding_for_no_adminbar’ );
`
It would also probably work in bp-custom.php to ensure it was picked up for all possible bp themes.

Note: I do not suggest this as an answer it’s a hack to get around the issue, but not a good approach all in all

Skip to toolbar