Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: What necessary changes should be made to BP themes for BP 1.2.6


anindyaray
Member

@anindyaray

@hnla: :) Thanks :) … but I had tried … , yet I tried once again … but in vain , I am pasteing the code

`function cancel_header_padding_for_no_adminbar() {
if(defined( ‘BP_DISABLE_ADMIN_BAR’ ) || $bp->doing_admin_bar = false && !is_user_logged_in()) ?>

body {padding-top:0;}
<?php
}
add_action( ‘wp_head’, ‘cancel_header_padding_for_no_adminbar’ );`

this is what I tried :( , but with no luck

With this function , with or without the && !is_user_logged_in() thing, padding is gone for everybody(logged in and logged out user both)

@rogercoathup : Thanks for the suggestion I will try to start learning , Everything has a first time :) , actually I’m very much uncomfortable :)

Skip to toolbar