Site logo

Archived topic

Adding Navigation to Non-WordPress Page

1 reply · Started by Jeremy on March 27, 2018

Viewing posts 1–2 of 2

Hey,

I am trying to add the navigation from our GP Premium theme to our site Apex Training Corporation, specifically to our PMP Certification page, but am unable to do so.

I was able to pull the navigation in pure html in through using the following, but I want it to be exactly as it appears on the rest of the site:

<?php
wp_nav_menu( array( 'menu' => 'main' ) );
?>

& calling the following in the header:

<?php require('wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
?>

Any idea how I can do this? I really appreciate the help!

Thanks! :)

To grab the GP menu, you would use this function:

generate_navigation_position()

However, that won't work on a non-WP page. You could have to use custom HTML/CSS for that.

This archived topic is closed to new replies.