Affiliate Disclosure: We may be compensated if you use our links to make a purchase. We are extremely selective in who we partner with & only recommend products we believe in. Our affiliate relationships do not influence our recommendations.
If you’ve enabled comments in Focus Mode, the default title that appears before the comment box reads, “Leave a Comment.” This works fine for traditional blogs but it doesn’t always make sense for a LearnDash lesson or topic.
This article will show you how to use custom text instead of “Leave a Comment.”
In order to change this text, we’re going to use a piece of PHP code.
My preferred way to make changes like this is with the Code Snippets plugin. You could also add this code to the functions.php file of your child theme (if you’re using one), but I find Code Snippets to be easier to manage and less likely to bring your site down if you make a mistake.
Install & activate “Code Snippets” from your WordPress plugins page
Navigate to Snippets > Add New in the left sidebar
Give your snippet a name. Something like “LearnDash – Focus Mode Comment Title Text”
The only thing you should change in the code above is the Ask your questions here text. Update that to whatever you want your new title to be.
Sponsor
Finally Revealed...
NEW breakthrough solution allows you to IMMEDIATELY GROWstudent engagement and SELL more courses by creating a state of the art mobile application in 60 MINUTES OR LESSwithout ANY coding knowledge!
Proven and tested by over 1,000 LearnDash customers.
How to Change the “Leave a Comment” Title in Focus Mode
By Dave Warfel
On October 15, 2020
In Tutorials
Affiliate Disclosure: We may be compensated if you use our links to make a purchase. We are extremely selective in who we partner with & only recommend products we believe in. Our affiliate relationships do not influence our recommendations.
If you’ve enabled comments in Focus Mode, the default title that appears before the comment box reads, “Leave a Comment.” This works fine for traditional blogs but it doesn’t always make sense for a LearnDash lesson or topic.
This article will show you how to use custom text instead of “Leave a Comment.”
In order to change this text, we’re going to use a piece of PHP code.
My preferred way to make changes like this is with the Code Snippets plugin. You could also add this code to the
functions.php
file of your child theme (if you’re using one), but I find Code Snippets to be easier to manage and less likely to bring your site down if you make a mistake.The Code Snippet
Here’s the code snippet that you’ll use:
The only thing you should change in the code above is the Ask your questions here text. Update that to whatever you want your new title to be.
Sponsor
Finally Revealed...
NEW breakthrough solution allows you to IMMEDIATELY GROW student engagement and SELL more courses by creating a state of the art mobile application in 60 MINUTES OR LESS without ANY coding knowledge!
Proven and tested by over 1,000 LearnDash customers.
Learn More →Previous
LearnDash Course Grid Returns No Results? Show a Custom Message.
Next
Course Grid in 1 column? Grid CSS not loading? Here’s the fix.