Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Adding Wordpress Header to Vanilla

netigatenetigate New
edited February 2013 in Vanilla 2.0 - 2.8

Hi,

i need to display the wordpress admin bar, when users are logged in and need to integrate the wordpress header into vanilla. i already tried to add the following to my themes default.master.php in the header, but just get errors. do you guys know more or have ideas?

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

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

show_admin_bar(true);
wp_admin_bar_render();
Sign In or Register to comment.