In some cases, you may want to replace only the post title text, but not alter the surrounding markup. Use the following snippet:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'genesis_post_title_text', function () { | |
return __( 'Replacement Title Text', 'textdomain' ); | |
} ); |
Leave a Reply