Where is the code for HOME menu Please? (4 posts)

  1. Halimah
    Posted 2 years ago #

    <?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.

  2. Krishna

    Posted 2 years ago #

    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.

  3. Halimah
    Posted 2 years ago #

    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.

  4. TCBarrett
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.