How To Limit Comment Length In WordPress Without Plugin

How To Limit Comment Length In WordPress Without Plugin

If you’re a blogger then you would know the importance of getting the comments.

People try hard to write quality comments on others’ blogs but few of them fail. It’s because they don’t put any value in their comments.

Have you ever thought to create a limit for the number of characters in your comment section? It wouldn’t let anyone drop the smaller comments.

People would only able to submit the comment which would fit the criteria you mention.

Do you know how to limit comment length in WordPress? In this tutorial, you will have the best piece of the code.

You Have To Open The functions.php File of Your Theme

Yes, you read it right.

As you know, all the functions of your WordPress theme are handled by this file. So you have to put the code in it.

Just log in to your WordPress admin panel. Go to Appearance>>Editor>>functions.php file.

If you don’t have access to your admin panel or you face any problem with it then use your cPanel.

Go to cPanel>>file manager>>wp-content>>themes>>theme name>>functions.php file.

Open this file and add the code at the bottom.

READ MORE>>

要查看或添加评论,请登录

Ravi Chahar的更多文章

社区洞察

其他会员也浏览了