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()
- How to add posts to custom menus?
- Display Menu Name using wp_nav_menu
- How to limit wordpress menu depth in admin panel
- 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?
- 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?
- wp_insert_post breaks rewrite rules
- 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()?
- Replace Home with image link inside custom header menu
- Displaying wp menus by name without using theme locations
- Displaying Page Title on index.php
- How do I add a post to a menu
- how to change WordPress menu markup/classes
- Do I really need the div class entry?
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Where is definied the theme location for the main menu in a WordPress template?
- How to remove class attributes from custom menu markup?
- menu behavior is not as expected
- which is the best way to customize nav-menu-template.php?
- 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?
- wp_post->post_parent object returning 0
- multisite: global menu containing network site links?
- How to make theme elements customizable in wordpress?
- Hard coded main navigation
- Using a page as home, how do I prevent nav from setting both home and page links active?
- How to append to menu items selectively
- Show woocommerce categories on my theme menu styling
- Why does has_nav_menu return false when get_registered_nav_menus shows the opposite?
- How to Find the Page the Front Page is Using?
- Admin: sub menu doesnt display under apperance when activate my themes
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- 3 Level Deep Navigation Menu Not Showing All Levels
- Need help with adding templates (archives and sitemap) to WordPress child theme
- How to Create custom xml file for demo content for custom theme?
- Show About and Contact Us page when they’re clicked in the top menu.
- Remove specific published page when theme deactivated
- How to add menù section to my WordPress template?
- Migrating to WordPress – but how will it do “structured” data?
- Theme Development -> Specific Homepage
- wp_nav_menu and its fallback
- How to code custom special page
- Theme development – Automatically menu creation
- Theme development: How to add CSS classes to menu items?
- Navbar- disable “onClick” drop-down
- How to add pages in wordpress using codes?
- How does the loop know which post to view?
- Pagination fuction in shortcode always displays on top
- Injecting pre-defined text from custom page template to editor
- Some doubts about WordPress handle the horizontal main menu visualization
- How to conditionally add a wp_filter
- Remove/Hide a Widget on a Custom Template
- Exclude function from homepage only?
- finding menu hierachy > wp_get_nav_menu_items
- How to substitute old wordpress menu by wp 3 menu the right way?
- Archives and Categories in Custom Menu
- Cart displayed above header
- Best way to give user the option to make a menu, mega menu?
- How do I open a post in a custom page in wordpress?
- 3 Level Menu Navigation (3rd Level not displaying)
- Theme: dropdown hover menu not showing up in IE/Edge
- How to show metabox on page if it is using a template
- Show all menu levels except top level. How to exclude top level of a menu?
- Need help with adding custom wordpress menu and sub-menu
- WordPress menu walker – Get parent item text inside end_lvl function
- How to achieve this navigation style in wordpress navigation
- HTML TO WP Theme : Submenu goes down wp_nav_menu
- Display content on Single page
- Fallback dosen’t work when not using ‘menu’ attribute
- WordPress doesn’t recognize submenus as so I can’t style them properly
- Primary Menu Showing All Pages With No Sub-Nav
- Advantages/Disadvantages Using Theme Editor Instead of Pages
- After theme change the menus have to be manually linked to the corresponding theme location
- WordPress 3.9 two menus in same position?
- 3 x 3 grid of posts on the home page
- Horizontal Navigation
- What’s the policy for building a theme that doesn’t support widgets/menus?
- How to make navigation a list without a plugin? [duplicate]
- What is the advantage of using home.php over index.php for the front page
- Some informations about the use of statics pages in WordPress
- How to highlight current menu bar base on the URL?
- Add wrapper for a specific sub-menu
- Dynamic nav menu with icons [closed]
- TItle In Latest Post is not using H1 Tag [closed]