The MU forums have moved to WordPress.org

admin bar and some theme (7 posts)

  1. flys
    Member
    Posted 17 years ago #

    Hi to all,
    i've installed the admin-bar plugin with success,
    but i noticed that the plugin disappears with some template.
    There is a way to manual install it ?

    thanks in advance

  2. lunabyte
    Member
    Posted 17 years ago #

    You have to fix those themes to make sure that

    <?php do_action('wp_footer'); ?>

    is in the footer of the theme.

  3. Ovidiu
    Member
    Posted 17 years ago #

    and if it still does not work you have to manually include it in this particular theme like this in the header.php fiel of the theme that has issues displaying it automatically:

    </head>
    <?php wp_admin_bar(); ?>
    <body>
    

    although I am pretty sure I already posted this somewhere in this forum :-)

  4. drmike
    Member
    Posted 17 years ago #

    I thought it came after the body tag. At least that's how I do it on my themes.

  5. lunabyte
    Member
    Posted 17 years ago #

    It should, but if it doesn't get inserted with the footer action, then there is a more serious underlying problem.

  6. Ovidiu
    Member
    Posted 17 years ago #

    the above code works for the themes I had problems with...

    Also had some fixed position thems that would rip the admin bar apart and show it somewhere in a completely unusable position

  7. flys
    Member
    Posted 17 years ago #

    thanks a lot,
    i've fixed them ;)

About this Topic