WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Halimah
    Member
    Posted 11 months 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.
    thanks

  2. Krishna
    Volunteer Moderator
    Posted 11 months 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.
    http://codex.wordpress.org/Child_Themes
    For changing menu, see:
    http://codex.wordpress.org/Appearance_Menus_Screen
    If you need help with changing menu, please link to your site.

  3. Halimah
    Member
    Posted 11 months 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
    Member
    Posted 11 months 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.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.