Learn how to modify the text inside the button to send comments in any WordPress theme using code.
Of all the possible ways to customize a WordPress theme, 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, you could replace the default “Post Comment” button call to action with one that invites more participation, such as “Leave an opinion”.
All you need to do is use a WordPress filter.
Code to change the CTA of the button to post comments
Add this snippet at the end of the functions.php file:
With this code the text that appears inside the button is “Leave an opinion”.
Modify this text according to your needs so that it is aligned with the personality of the project you are working on.
For example, if the website does not accept comments before reviewing them, you could use the expression “Send comment to review”, since it provides more information to the reader.
Are you making changes to the text related to comments? You may want to know how to replace the text that invites to comment on blog entries.
Now you know how easy it is to customize the text of the comment button in WordPress.
Any questions? I read you in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉