Skip to:
Content
Pages
Categories
Search
Top
Bottom

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.

    siteurl: http://www.chefsline.com/blog

Viewing 4 replies - 1 through 4 (of 4 total)
  • Profile photo of Burt Adsit
    Burt Adsit
    Participant

    @burtadsit

    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!

    Profile photo of Matt Kern
    Matt Kern
    Participant

    @mattkern

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

    remove_action(‘wp_footer’, ‘bp_core_admin_bar’);

    Profile photo of Matt Kern
    Matt Kern
    Participant

    @mattkern

    found it over here…

    remove admin bar

    https://buddypress.org/forums/topic.php?id=1115

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