With this snippet you can modify the text with which you invite readers to leave a comment on any Genesis Framework child theme.
Of all the possible ways to customize a Genesis template, in most cases we focus only on the aesthetic part.
However, it is worth making small changes to the theme texts so that they are also aligned with the brand.
For example, when asking visitors to write a comment, you could replace the default phrase, “Leave a comment,” with one that invites more participation, such as “Share your opinion”.
As you’ll see below, you only need to use a WordPress filter to do this.
Code to change the text that invites you to leave a comment
Add this snippet at the end of the functions.php file:
To see this and another 919 code snippets of this website, login or subscribe here.
With this version, you replace the title with ” Share your opinion”.
Modify this text according to your needs so that it fits the personality of the website you are working on.
If you are making changes to the text related to comments, you may want to know how to rewrite the comment link that appears in the metadata of each post.
Conclusions
Now you know how to change the text that prompts comments in a Genesis child theme using code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂