Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have been trying to get the admin bar to show up under a magento install. I have tried eveything to get it. I can get the user, get the footer but nothing happens to get the admin bar up.

from with in a 1column.phtml I called a

    <?php 
        echo $this->getLayout()->createBlock('core/template')->setTemplate('custom/userpanel.phtml')->toHtml(); 
    ?> 

and in that 'custom/userpanel.phtml' I added :

            require_once('/var/www/html/blog/wp-load.php');
            require_once('/var/www/html/blog/wp-blog-header.php');
            require_once('/var/www/html/blog/wp-includes/admin-bar.php');
            require_once('/var/www/html/blog/wp-config.php');

            show_admin_bar(true);
            wp_admin_bar_render();

with out anyluck.

I'v tried using

            wp_footer();

but that doesn't get the bar, and even calling the head function doesn't work

            wp_head();
            wp_footer();

But althou i get all the head elements like the and what not which i don't want since it's in the , but still nothing. What is the way to set it up correctly?

------------------------------------------------------------------------

EDIT

------------------------------------------------------------------------

So I thought I'd get tricky and just grab the admin bar from WP and pull it over almost like jquery .load() but at php runtime. This is what i did, but here is the odd part, it fails cause it thinks I'm not loged in?

Again in 'custom/userpanel.phtml' of magento which is pull over to WP so when in WP it's all fine but well as of yet nothing here.

<div id="wpfoot">
    <?php 


        //wp_head(); 
        if ($userUsername ) {

            if ( strpos($_SERVER['REQUEST_URI'], '/blog/') === FALSE ){     

                $dom = new DOMDocument();
                $dom->validateOnParse = true;
                $dom->loadHtml(file_get_contents("http://domain.xxx/blog/"));
                echo $dom->getElementById('wpfoot');

            }else{
                wp_footer();
            }
        }

    // 
    ?>
</div>
share|improve this question

2 Answers 2

Sorry I was going to try to comment but it's just way to much not to use the answer area lol.. so i used ..

<?php
require_once('/var/www/html/blog/wp-load.php');
require_once('/var/www/html/blog/wp-blog-header.php');
require_once('/var/www/html/blog/wp-includes/admin-bar.php');
?>
<link rel='stylesheet' id='notes-admin-bar-rest-css'  href='http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.css?ver=2.0.4-201252' type='text/css' media='all' />
<link rel='stylesheet' id='noticons-css'  href='http://s0.wp.com/i/noticons/noticons.css?ver=2.0.4-201252' type='text/css' media='all' />
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/admin-bar.min.js?ver=3.5'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/q-and-a/js/q-a-plus.js?ver=1.0.5.1'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/magento-wordpress-integration/js/mwi_scripts.js?ver=3.5'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201252'></script>
<script type='text/javascript' src='http://s.gravatar.com/js/gprofiles.js?ver=2012Decaa'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var WPGroHo = {"my_hash":"1f7c62515b26081bb6d6c8dfbfd2e7dc"};
/* ]]> */
</script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/modules/wpgroho.js?ver=3.5'></script>
<script type='text/javascript' src='http://s1.wp.com/wp-content/js/mustache.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/underscore.min.js?ver=1.4.0'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/backbone.min.js?ver=0.9.2'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/postmessage.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/_inc/spin.js?ver=1.2.4'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/_inc/jquery.spin.js?ver=3.5'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/notes/notes-rest-common.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.js?ver=2.0.4-201252'></script>

<?php
show_admin_bar(true);
wp_enqueue_script( 'admin-bar' );
wp_enqueue_style( 'admin-bar' );
_wp_admin_bar_init();
    function annointed_admin_bar_remove() {
            global $wp_admin_bar;

            /* Remove their stuff */
            if(!is_super_admin())$wp_admin_bar->remove_menu('wp-logo');
            if(!is_super_admin())$wp_admin_bar->remove_menu('site-name');
            if(!is_super_admin())$wp_admin_bar->remove_menu('comments');
            if(!is_super_admin())$wp_admin_bar->remove_menu('new-content');
    }

add_action('wp_before_admin_bar_render', 'annointed_admin_bar_remove', 0);
wp_admin_bar_render();
?>

This out puted

<link rel='stylesheet' id='notes-admin-bar-rest-css'  href='http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.css?ver=2.0.4-201252' type='text/css' media='all' />
<link rel='stylesheet' id='noticons-css'  href='http://s0.wp.com/i/noticons/noticons.css?ver=2.0.4-201252' type='text/css' media='all' />
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/admin-bar.min.js?ver=3.5'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/q-and-a/js/q-a-plus.js?ver=1.0.5.1'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/magento-wordpress-integration/js/mwi_scripts.js?ver=3.5'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201252'></script>
<script type='text/javascript' src='http://s.gravatar.com/js/gprofiles.js?ver=2012Decaa'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var WPGroHo = {"my_hash":"1f7c62515b26081bb6d6c8dfbfd2e7dc"};
/* ]]> */
</script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/modules/wpgroho.js?ver=3.5'></script>
<script type='text/javascript' src='http://s1.wp.com/wp-content/js/mustache.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/underscore.min.js?ver=1.4.0'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/backbone.min.js?ver=0.9.2'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/postmessage.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/_inc/spin.js?ver=1.2.4'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/_inc/jquery.spin.js?ver=3.5'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/notes/notes-rest-common.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.js?ver=2.0.4-201252'></script>

<div id="wpadminbar" class="nojq nojs" role="navigation">
    <a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1">Skip to toolbar</a>
    <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="Top navigation toolbar." tabindex="0">
    <ul id="wp-admin-bar-root-default" class="ab-top-menu">
    <li id="wp-admin-bar-bp-login"><a class="ab-item"  href="http://domain.xxx/blog/wp-login.php">Log in</a>        </li></ul><ul id="wp-admin-bar-top-secondary" class="ab-top-secondary ab-top-menu">
    <li id="wp-admin-bar-search" class="admin-bar-search"><div class="ab-item ab-empty-item" tabindex="-1"><form action="http://domain.xxx/blog/" method="get" id="adminbarsearch"><input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /><input type="submit" class="adminbar-button" value="Search"/></form></div>        </li></ul>          </div>
    <a class="screen-reader-shortcut" href="http://domain.xxx/blog/wp-login.php?action=logout&#038;_wpnonce=801d68aa91&#038;redirect_to=http%3A%2F%2Fdomain.xxx%2F%3Floggedout%3Dtrue">Log Out</a>
</div>

Now I'm getting something but nothing nare what is needed as when i go under WP and just use

            wp_footer();

I get

<link rel='stylesheet' id='notes-admin-bar-rest-css'  href='http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.css?ver=2.0.4-201252' type='text/css' media='all' />
<link rel='stylesheet' id='noticons-css'  href='http://s0.wp.com/i/noticons/noticons.css?ver=2.0.4-201252' type='text/css' media='all' />
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/admin-bar.min.js?ver=3.5'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/q-and-a/js/q-a-plus.js?ver=1.0.5.1'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/magento-wordpress-integration/js/mwi_scripts.js?ver=3.5'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201252'></script>
<script type='text/javascript' src='http://s.gravatar.com/js/gprofiles.js?ver=2012Decaa'></script>
<script type='text/javascript'>
/* <![CDATA[ */
var WPGroHo = {"my_hash":"1f7c62515b26081bb6d6c8dfbfd2e7dc"};
/* ]]> */
</script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/modules/wpgroho.js?ver=3.5'></script>
<script type='text/javascript' src='http://s1.wp.com/wp-content/js/mustache.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/underscore.min.js?ver=1.4.0'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-includes/js/backbone.min.js?ver=0.9.2'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/js/postmessage.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/_inc/spin.js?ver=1.2.4'></script>
<script type='text/javascript' src='http://domain.xxx/blog/wp-content/plugins/jetpack/_inc/jquery.spin.js?ver=3.5'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/notes/notes-rest-common.js?ver=2.0.4-201252'></script>
<script type='text/javascript' src='http://s0.wp.com/wp-content/mu-plugins/notes/admin-bar-rest.js?ver=2.0.4-201252'></script>

<script src="http://stats.wordpress.com/e-201252.js" type="text/javascript"></script>
<script type="text/javascript">
st_go({v:'ext',j:'1:2.0.4',blog:'43533898',post:'2',tz:'0'});
var load_cmc = function(){linktracker_init(43533898,2,2);};
if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc);
else load_cmc();
</script>       <div id="wpadminbar" class="nojq nojs" role="navigation">
        <a class="screen-reader-shortcut" href="#wp-toolbar" tabindex="1">Skip to toolbar</a>
        <div class="quicklinks" id="wp-toolbar" role="navigation" aria-label="Top navigation toolbar." tabindex="0">
            <ul id="wp-admin-bar-top-secondary" class="ab-top-secondary ab-top-menu">
    <li id="wp-admin-bar-search" class="admin-bar-search"><div class="ab-item ab-empty-item" tabindex="-1"><form action="http://domain.xxx/blog/" method="get" id="adminbarsearch"><input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" /><input type="submit" class="adminbar-button" value="Search"/></form></div>        </li>
    <li id="wp-admin-bar-my-account" class="menupop with-avatar"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/profile/edit/" title="My Account">Howdy, aimee.bass<img src="http://www.gravatar.com/avatar/1f7c62515b26081bb6d6c8dfbfd2e7dc?d=http://domain.xxx/blog/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg&amp;s=16&amp;r=X" alt="Avatar of aimee.bass" class="avatar user-3-avatar" width="16" height="16" /></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-user-actions" class="ab-submenu">
    <li id="wp-admin-bar-user-info"><a class="ab-item" tabindex="-1" href="http://domain.xxx/blog/members/aimee-bass/profile/edit/"><img src="http://www.gravatar.com/avatar/1f7c62515b26081bb6d6c8dfbfd2e7dc?d=http://domain.xxx/blog/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg&amp;s=64&amp;r=X" alt="Avatar of aimee.bass" class="avatar user-3-avatar" width="64" height="64" /><span class='display-name'>aimee.bass</span><span class='username'>aimee-bass</span></a>     </li>
    <li id="wp-admin-bar-edit-profile"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/profile/edit/">Edit My Profile</a>       </li>
    <li id="wp-admin-bar-logout"><a class="ab-item"  href="http://domain.xxx/blog/wp-login.php?action=logout&#038;_wpnonce=893f935987&#038;redirect_to=http%3A%2F%2Fdomain.xxx%2Fblog%2F%3Floggedout%3Dtrue">Log Out</a>        </li></ul><ul id="wp-admin-bar-my-account-buddypress" class="ab-sub-secondary ab-submenu">
    <li id="wp-admin-bar-my-account-activity" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/activity/">Activity</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-activity-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-activity-mentions"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/activity/mentions/">Mentions</a>     </li>
    <li id="wp-admin-bar-my-account-activity-personal"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/activity/">Personal</a>      </li>
    <li id="wp-admin-bar-my-account-activity-favorites"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/activity/favorites/">Favorites</a>      </li>
    <li id="wp-admin-bar-my-account-activity-friends"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/activity/friends/">Friends</a>        </li>
    <li id="wp-admin-bar-my-account-activity-groups"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/activity/groups/">Groups</a>       </li></ul></div>        </li>
    <li id="wp-admin-bar-my-account-forums" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/forums/">Forums</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-forums-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-forums-topics-started"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/forums/topics/">Topics Started</a>       </li>
    <li id="wp-admin-bar-my-account-forums-replies"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/forums/replies/">Replies Created</a>        </li>
    <li id="wp-admin-bar-my-account-forums-favorite-topics"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/forums/favorites/">Favorite Topics</a>      </li>
    <li id="wp-admin-bar-my-account-forums-topics"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/forums/topics/">Topics Started</a>       </li>
    <li id="wp-admin-bar-my-account-forums-favorites"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/forums/favorites/">Favorite Topics</a>        </li>
    <li id="wp-admin-bar-my-account-forums-subscriptions"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/forums/subscriptions/">Subscribed Topics</a>      </li></ul></div>        </li>
    <li id="wp-admin-bar-my-account-friends" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/friends/">Friends <span class="count">1</span></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-friends-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-friends-friendships"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/friends/">Friendships</a>      </li>
    <li id="wp-admin-bar-my-account-friends-requests"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/friends/requests/">Pending Requests <span class="count">1</span></a>      </li></ul></div>        </li>
    <li id="wp-admin-bar-my-account-groups" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/groups/">Groups</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-groups-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-groups-memberships"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/groups/">Memberships</a>        </li>
    <li id="wp-admin-bar-my-account-groups-invites"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/groups/invites/">No Pending Invites</a>     </li></ul></div>        </li>
    <li id="wp-admin-bar-my-account-messages" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/messages/">Messages</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-messages-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-messages-inbox"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/messages/inbox/">Inbox</a>      </li>
    <li id="wp-admin-bar-my-account-messages-sentbox"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/messages/sentbox/">Sent</a>       </li>
    <li id="wp-admin-bar-my-account-messages-compose"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/messages/compose/">Compose</a>        </li></ul></div>        </li>
    <li id="wp-admin-bar-my-account-settings" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/settings/">Settings</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-settings-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-settings-general"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/settings/general/">General</a>        </li>
    <li id="wp-admin-bar-my-account-settings-notifications"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/settings/notifications/">Notifications</a>      </li></ul></div>        </li>
    <li id="wp-admin-bar-my-account-xprofile" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/profile/">Profile</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-my-account-xprofile-default" class="ab-submenu">
    <li id="wp-admin-bar-my-account-xprofile-public"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/profile/public/">View</a>      </li>
    <li id="wp-admin-bar-my-account-xprofile-edit"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/profile/edit/">Edit</a>      </li>
    <li id="wp-admin-bar-my-account-xprofile-change-avatar"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/profile/change-avatar/">Change Avatar</a>       </li></ul></div>        </li>
    <li id="wp-admin-bar-cb-points" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/cubepoints/">Points</a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-cb-points-default" class="ab-submenu">
    <li id="wp-admin-bar-cb-point_logs"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/cubepoints/">Point Logs</a>     </li>
    <li id="wp-admin-bar-cb-point_global_logs"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/cubepoints//table/">Sitewide Points</a>      </li>
    <li id="wp-admin-bar-cb-point_earn_pts"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/cubepoints//earnpoints/">Point Legend</a>       </li></ul></div>        </li></ul></div>        </li>
    <li id="wp-admin-bar-my-points"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/cubepoints/">Þ 56</a>       </li>
    <li id="wp-admin-bar-bp-notifications" class="menupop"><a class="ab-item"  aria-haspopup="true" href="http://domain.xxx/blog/members/aimee-bass/"><span id="ab-pending-notifications" class="pending-count alert">2</span></a><div class="ab-sub-wrapper"><ul id="wp-admin-bar-bp-notifications-default" class="ab-submenu">
    <li id="wp-admin-bar-notification-2"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/friends/my-friends/">jeremy.bass accepted your friendship request</a>      </li>
    <li id="wp-admin-bar-notification-5"><a class="ab-item"  href="http://domain.xxx/blog/members/aimee-bass/friends/requests/?new">You have a friendship request from jeremy.bass</a>      </li></ul></div>        </li>
    <li id="wp-admin-bar-notes" class="menupop"><div class="ab-item ab-empty-item" ><span id="wpnt-notes-unread-count" class="wpnt-loading wpn-read">
                <span class="noticon noticon-notification" /></span>
                </span></div><div id="wpnt-notes-panel" style="display:none"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">Notifications</span><span class="wpnt-notes-panel-link"></span></div></div>       </li></ul>          </div>
        <a class="screen-reader-shortcut" href="http://domain.xxx/blog/wp-login.php?action=logout&#038;_wpnonce=893f935987&#038;redirect_to=http%3A%2F%2Fdomain.xxx%2Fblog%2F%3Floggedout%3Dtrue">Log Out</a>
    </div>

So it's picking up all the buddypress and everything. I know I have the user loged in and even get most of the WP user stuff in magento but the admin bar is left to the wind still.

share|improve this answer
    
Please edit additional details into your question. –  Rarst Jun 15 '13 at 22:34
    
if I recall correctly, it was to long. when I have time I'll see if I can. –  jeremy.bass Jun 16 '13 at 0:34
    
I meant this answer is essentially seems to be such details to be moved there. :) –  Rarst Jun 16 '13 at 8:53

Add also script and styles:

wp_enqueue_script( 'admin-bar' );
wp_enqueue_style( 'admin-bar' );

and _wp_admin_bar_init()

You must also include the Hooks for register script and styles or include the scripts from the key 'admin-bar' in your head.

/wp-includes/js/admin-bar.js
/wp-includes/css/admin-bar.css

I think this was all for display the Admin Bar.

share|improve this answer
    
I had to comment in the form of an answer. thanks for the help –  jeremy.bass Dec 28 '12 at 16:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.