0

I have a third party app installed (such as a forum) that I've linked with my Wordpress menu (as a custom link). However I wish to show the same wordpress menu above this app (I have it's source code so can make changes). What do I need to do so it shows up nicely on any page?

Right now clicking on it opens the new page but naturally without the current theme. I'd love for it to maintain the same overall look if I can.

1 Answer 1

0

You'll need to load in the external wordpress library first, and then you can call the admin bar.

// Load the external Wordpress files
define( 'WP_USE_THEMES', false );
require( './wp-load.php' );

and then call wp_head() and wp_footer() accordingly to load the relevant display code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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