First, install the Say What? plugin.
After you install and activate the Say What? plugin, a new menu item will be added under the Tools admin menu named Text changes.
Navigate to the Tools : Text changes admin page and click the Add New button.
Enter the following settings:
- Original string:
Email Entry
- Text domain:
connections_contact
- Text context:
leave this field blank
- Replacement string:
Email Me
Change the Email Me
string to your desired text.
If you would like the “Email Entry” heading to be dynamic and display “Email Entry Name” where the “Entry Name” will be the name of the current directory entry, follow these steps.
- Install and activate the Code Snippets plugin.
- Download this zip file: code-snippet.zip
- Unzip the downloaded zip file.
- Import the file into Code Snippets.
- Activate the imported code snippet.
The Code Snippet will run the following code. Alternatively, by utilizing the Code Snippets plugin, you can add this code to the theme’s functions.php
file or in a utility plugin.
add_filter( 'Connections_Directory/Content_Block/Heading', static function( $heading, $key, $entry ) { if ( 'email_entry' === $key ) { $heading = "Email {$entry->getName()}"; } return $heading; }, 10, 3 );