• Md Alamin

    (@bir0611)


    Dear, I am new in wordpress. I have designed a navigation menu. But when i click the menu item , it is not showing any page.It just showing

    Not Found

    The requested URL /wordpress/blog/ was not found on this server.

    How can i fixed this problem. Please tell me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • jruescher

    (@jruescher)

    do you have a link to ur website or something like this?

    or just set the links like this.. Home

    you can see the page ID if u edit the post/page under the headline

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    lol please wrap all code in backticks

    jruescher

    (@jruescher)

    y, sorry

    <a href="/?page_id=37">Home</a>

    Thread Starter Md Alamin

    (@bir0611)

    I have just added the following code to my functions.php file

    function register_my_menus() {
      register_nav_menus(
        array(
          'header-menu' => __( 'Header Menu' ),
          'extra-menu' => __( 'Extra Menu' )
        )
      );
    }
    add_action( 'init', 'register_my_menus' );
    ?>

    and the following code to my header.php file

    <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘navigation menu problem’ is closed to new replies.