Skip to:
Content

BuddyPress.org

Changeset 2006


Ignore:
Timestamp:
09/30/2009 04:55:27 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1128

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-sn-parent/functions.php

    r1926 r2006  
    6868add_action( 'wp', 'bp_dtheme_show_home_blog', 2 );
    6969
     70/* Override the Admin Bar CSS if it has been disabled */
     71function bp_dtheme_override_adminbar_css() {
     72    if ( defined( 'BP_DISABLE_ADMIN_BAR' ) || ( get_site_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) ) {
     73    ?>
     74<style type="text/css">body { padding-top: 0 !important; }</style>
     75    <?php }
     76}
     77add_action( 'wp_footer', 'bp_dtheme_override_adminbar_css' );
     78
    7079?>
Note: See TracChangeset for help on using the changeset viewer.