You can leverage the use of the gettext
filter to change the text. Add this code to your child theme’s functions.php
or to a plugin:
add_filter('gettext', 'wpse248225_change_text', 20, 3 );
function wpse248225_change_text( $translated_text, $untranslated_text, $domain ) {
if ( NECTAR_THEME_NAME !== $domain ) {
return $translated_text;
}
// Make the changes to the text
switch( $untranslated_text ) {
// Change 'Menu' text
case 'Menu':
$translated_text = __( 'something different', 'text_domain' );
break;
// add more items
}
return $translated_text;
}
Related Posts:
- Multiple WordPress Menus that will only display all pages
- Hide Hamburger Menu On Specific Page (Front Page/Home Page)
- Menu Custom Data Attributes
- Remove the Tag from wp_nav_menu
- Adding first / last CSS classes to menus
- Mega Menu Walker
- Displaying Logged-In User Name in WordPress Menu
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- How can I add a class to a single menu item?
- WordPress loop specific thumbnail size
- Is it possible to use the featured image of a page as a css background without inlining?
- Logout and redirect using the WP Menu
- Second Navigation inside header
- How can I add a custom class to only nav sub-menu > li > a items in WordPress?
- items_wrap not working
- Style wp_page_menu() items
- wp nav menu: add attributes to menu items [duplicate]
- Displaying theme options in css
- Change Navigation Bar based on logged in or not
- Theme Options Page – User Updates Logo
- How to use my style.css file outside of wordpress subdomain?
- Menu Limitations
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- Redirect to another page using contact form 7? [closed]
- How to style one item from main navigation?
- Show About and Contact Us page when they’re clicked in the top menu.
- Add login hyperlink to secondary navigation menu
- wp_nav_menu not working correctly in my underscores theme
- Output only links using wp_nav_menu()
- Get css class of menu item in custom menu structure
- How to add aria role and schema markup to custom walker container
- jQuery accordion menu
- Extend Menu Walker Output
- Nav-Menu not showing up
- Custom navigation menu with awsAccordion
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Why can’t I add a custom image in my navigation?
- conditional: if is page, and all subpages
- wp nav menu: show submenu below li item
- How to tell if a user has gone in and created a menu
- Styling an “active” link outside of WordPress default menu
- Adding a navigation page state to individual blog and portfolio pages
- Displaying images outside the content
- WordPress navigation wont appear with wp_head
- how to changes mobile menu toggle breakpoint in WordPress
- How to make only the valid active page of a multilevel menu active with – “.nav li.current-menu-item a”?
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- How to set Nav as a default menu in wordpress
- 3 Level Menu Navigation (3rd Level not displaying)
- How to print all the inline styles in the WP_Styles instance together with their keys?
- register dependency css and js inside a plugin class
- How to let mobile navigation menu close when link is clicked?
- Redirect User when they click Menu Option
- Fix hover images blink
- Bring Font Awesome icons inside menu A tags
- How to create a sub-page of sub-page?
- CSS loading as empty file in Custom Theme
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- Display specific main Sub Nav on Woocommerce product pages
- How limit the width of a fixed menu-bar on scroll?
- Click to expand menu
- Relative post date in recent posts list
- Add the “.current-menu-item” class to tag?
- WP_Nav Highlight Parent Issue
- How to change the menu color
- Nav Menu Display
- Sidebar doesnt get updated?
- Add CSS class to PHP Statement
- Load slideshow.css file only if Slideshow is checked / on
- Open WordPress Page from selected option dropdown
- Predefine Magazine Style Layouts
- Custom Navigation Bar JSON Syntax Error in JSON at Position 0
- Nav menù doesn’t display selected pages
- Get author full name
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Am I not understanding plugins?
- WordPress override bloginfo variable
- How to show all pages in blog navigation?
- Menu jumping when calling it via PHP
- Different post styles depending on category
- two columns of posts on homepage, one of them “favorites”
- Is there a way to conditionally check whether a WordPress post title is empty?
- Register a menu – Error Header
- Get the name of menu item with wp_nav_menu
- Default Nav Highlight
- Add New Text Box To WordPress Twenty Seventeen Header
- I get “Cannot modify header information – headers already sent” when I change my theme
- How to edit background color of only one sidebar?
- Removing links from Grouped products
- admin panel – How to remove “delete” button from category editing page
- PHP drop down menu for my get_category child of
- Widget edit and add in any page
- Active class not working on custom menu link using add_menu_page
- Remove Unused Menu Locations
- How to create a container in php then customise it in CSS
- WordPress PHP8 Critical Error in class-wp-widget.php