Skip to:

Admin bar at top of page

  • Hi all!

    For now, I want to keep the admin bar at the top of the page. BUT I do not know how to keep my site’s leaderboard google ad ABOVE adminbar.

    Can you direct me as to where the adminbar gets first called?

    Maybe if I place adsense code there I can reposition IT above adminbar.

    Suggestions and direction are most appreciated! Thanks.


Viewing 4 replies - 1 through 4 (of 4 total)

  • Burt Adsit


    The bp admin bar gets called and generated in the footer by a add_action( 'wp_footer', 'bp_core_admin_bar', 8 ); call. When the action ‘wp_footer’ is triggered it gets generated. You might try sneaking your ad in with a priority of 7. Then it will get generated before the admin bar’s priority of 8. I don’t know what’s gonna happen with the css for the admin bar. You might have to modify that. Not sure.

    Thanks Burt. Will try!

    Matt Kern


    So then would this code remove the admin bar? Would I place it in functions.php?

    remove_action(‘wp_footer’, ‘bp_core_admin_bar’);

    Matt Kern


    found it over here…

    remove admin bar

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin bar at top of page’ is closed to new replies.
Skip to toolbar