wp_nav_menu
with no arguments and no menus defined in the back end at wp-admin->Appearance->Menus
(which sounds like the circumstance you describe) just lists your pages, plus a “Home” link.
That is done by calling wp_page_menu
, the default callback for wp_nav_menu
, which means that under those conditions you can alter that text by hooking to wp_page_menu_args
and setting, or changing, the show_home
argument.
function alter_default_home_link_wpse_1011444($args) {
$args['show_home'] = 'Home is where the heart is';
return $args;
}
add_filter( 'wp_page_menu_args', 'alter_default_home_link_wpse_1011444');
Related Posts:
- How to highlight the current page in the nav menu?
- Parent/Child pages
- Pages not displaying as sections on static page
- Menu items description? Custom Walker for wp_nav_menu()
- When to use is_home() vs is_front_page()?
- How to add posts to custom menus?
- wp_nav_menu(), how to change class?
- Display Menu Name using wp_nav_menu
- How can I display a menu on certain pages only?
- Apply the_title() filter in post & page title, but not in menu title
- Change the_title() of a page dynamically
- A way to automatically install pages on theme install?
- Add custom classes to anchor in wp_nav_menu
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- How to limit wordpress menu depth in admin panel
- Is it possible to manipulate the list of page templates?
- wp_nav_menu sort order?
- How to determine if custom menu is active?
- How do I check if a menu exists?
- Pages: frontpage.php, home.php, posts page etc
- How to use logout function on custom menu link?
- Posts in multiple Categories different single.php
- Any walker causes blank menu?
- Hide certain pages / posts on wp-admin, show custom filter
- Authentication / login mechanism (non wp-admin)
- How to display wp_nav_menu() conditionally only when not on a 404 page?
- How to add menu support to a theme?
- Problem with registering menus – What to do when other solutions aren’t working?
- Add a #hash to the links in my custom menu
- How can i change menu link when page content empty?
- Change Genesis Tag from Page Template [closed]
- wp_insert_post breaks rewrite rules
- Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
- Select menu on browser resize
- how to get title to custom tags page
- Extend walker – navigation, adding data attribute to a tag
- How to add (css) classes to only one wp_nav_menu()?
- Get last modified date for menu link
- Replace Home with image link inside custom header menu
- Displaying wp menus by name without using theme locations
- Displaying Page Title on index.php
- the_excerpt() not showing manual excerpt for Pages
- How to add nofollow to wp_nav_menu
- How do I add a post to a menu
- how to change WordPress menu markup/classes
- Setting a Default ‘Theme Location’ When Creating a Menu
- WordPress nav_menu_css_class theme filter is not being called
- Do I really need the div class entry?
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Removing title tags from each page
- How do I highlight the menu for a child page?
- Custom Nav Walker Displaying Values in Sub Menu
- Cannot update WordPress General Settings Site Title and Tagline
- how to set more than one menus to the same theme location
- Custom Nav Walker to show siblings and children of current branch?
- Displaying part of every child page?
- Adding “latest from the blog” to the homepage
- CSS won’t style output of wp_nav_menu() correctly
- Create self-populating menu and add extra divs to the menu layout
- how can I remove the sidebar from my wp homepage [closed]
- Where is definied the theme location for the main menu in a WordPress template?
- how to wrap tag in tag html to wordpress menu conversion
- How do I get the next page of posts link?
- Second menu not showing
- How to remove class attributes from custom menu markup?
- 2 differen’t menus and it’s using same items in both
- menu behavior is not as expected
- Where can I access my custom page template?
- Is there an action for save_menu and/or update_menu?
- Set default screen option for appearance -> menus
- using jQuery Cycle by Malsup with WordPress Page and Gallery
- Part of Menu Item Hidden on Header Menu
- wp_nav_menu add something before closing container and after last list item
- How to make Home Menu( Front Page) use index.php instead of page.php
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- which is the best way to customize nav-menu-template.php?
- Excluding Pages not working
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- WordPress navbar with logo in middle [closed]
- Highest number of WordPress Custom Page Templates?
- My Admin bar covers my sticky navbar [closed]
- WordPress is adding margins and padding to my custom menu?
- Menu item added in wp_nav_menu_items filter is never highlighted
- Link to Homepage in Menu
- wp_post->post_parent object returning 0
- WordPress empty Nav Menu error
- multisite: global menu containing network site links?
- How to make theme elements customizable in wordpress?
- Single-level menu option? Another way?
- Hard coded main navigation
- Primary navigation menu & footer not showing in category / tag page
- Using a page as home, how do I prevent nav from setting both home and page links active?
- Multiple TinyMCE Editors in one Admin Page
- Showing a list of posts when homepage is custom
- Create a new page in WordPress theme
- Problem with empty class attributes when running a filter on nav_menu_css_class
- Limitations when modifying wp_title with a filter
- How to append to menu items selectively
- Custom Nav Walker Trouble
- How to create a custom page(not a template) in a theme