[Support request] Adding Navigation to Non-WordPress Page

Home Forums Support [Support request] Adding Navigation to Non-WordPress Page

Home Forums Support Adding Navigation to Non-WordPress Page

  • This topic has 1 reply, 2 voices, and was last updated 6 years ago by Tom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #532857
    Jeremy

    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! 🙂

    #533214
    Tom
    Lead Developer
    Lead Developer

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.