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
- What is considered good practice for registering menu locations?
- Add value to new attribute inside WordPress menu items
- How to make function appear in sentence?
- Widgets not showing on custom theme
- Can I set up a hover animation in CSS depending on a PHP conditional?
- How to add css to single navigation text? [closed]
- Get ACF options field in PHP acting as CSS
- Where can I find the inline-css of my theme header?
- Get post categories
- CSS change in woo commerce Place Order Text [closed]
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- get_page_template_slug returns incorrect path
- Getting posts to exclude from array
- Get all posts as an array ID => Name
- Post repeated when opening in overlay, how do I solve this? [closed]
- home.php show blog posts as grid view
- Custom post type permalinks do not appear using the link functions
- Menu Items fail to save correctly, cause reset of related page metadata
- Dropdown menu for categories
- How to Handle Going Backwards in Navigation When Referrer in PHP/JavaScript won’t work?
- Is there a name for trivial WP PHP files like functions.php, archive php entry.php, page.php and so forth?
- How to display different submenus?
- Help Fallback (thumbnail)