Forums

[Plugin: WordPress Admin Bar] Can we call it in wp_head? (4 posts)

  1. ruijssantos
    Member
    Posted 2 years ago #

    Simply put, is there reason that we shouldn't load the admin bar on the wp_head hook instead of the wp_footer?

    I have some plugins delaying the page display, and this crossed my mind.

    I've tested and it seems fine, but if you see any thing that could go wrong please tell me know.

    Thanks for the great plugin.

    http://wordpress.org/extend/plugins/wordpress-admin-bar/

  2. Because it completely breaks validation. You aren't supposed to have display elements such as <ul> inside of the <head>.

  3. ruijssantos
    Member
    Posted 2 years ago #

    Thanks.

    I was checking it with Firefox/Firebug and I think they have a way to fix that, and the admin bar <div> wash showing inside of the <body> tag and I completely forgot that.

    It's a pity there isn't a general wp hook called right after the body tag.

  4. It's a pity there isn't a general wp hook called right after the body tag.

    That's all on theme developers. They could add one if they wanted to.

    Although it's hard enough as it is making theme developers put the head and footer hooks in...

Topic Closed

This topic has been closed to new replies.

About this Topic