Support » Fixing WordPress » Where is the code for HOME menu Please?

  • <?php /* Our navigation menu. If one isn’t filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn’t assigned, the menu with the lowest ID is used. */ ?>
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>

    I found the above code in header.php and i suppose it represent the default navigation menu of my website. i’m using twentyeleven theme and would like to know where exactly the “HOME” on the front page is coded in the wordpress folder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Krishna



    Do not change code or edit the twentyeleven theme. It’s the default WordPress theme. All the changes you make will be lost when the theme is updated. Instead use a child theme for modifying the default theme.
    For changing menu, see:
    If you need help with changing menu, please link to your site.

    I already created a child theme & i don’t intend to edit the default theme but i’m having a problem with the menu and i can’t link cos i’m working on a localhost, if you can help with where the HOME is coded i guess i should be able to solve the problem.

    You can add ‘Home’ to you menu by going to Appearance > Menus. In the Pages block, select the ‘View all‘ tab. This will reveal the home item for you to add to your menu.

    Where this links to depends on your front option in Settings > Reading.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where is the code for HOME menu Please?’ is closed to new replies.