How to add a comment box to specific pages in wordpress

39
9.2K followers
Updated

Sometimes some of us need to add a comment box to specific pages in wordpress, but due to restrictions of some wordpress templates we can't do it. Even if your template is a premium, i.e. paid one, you still can't add that box to all of your pages. Adding a comment box is not as difficult as you might be thinking at all. What you need is just open your Wordpress dashboard and head over to Appearance - Editor.


Now, on the right side of your screen, scroll down to find page.php file and click on it

Once you inside that file, just ctrl+F and find this line

Once you've found that line, just add the code on the image below

Finally, click on update file

Remember that if you update your wordpress template in the future, then you'll need to add that code to page.php file again.

P.S. Before making changes to page.php file copy the whole code inside page.php and paste it to a separate editor file (for example, notepad) so you can restore your page.php if something goes wrong.

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

89

Thanks. It sure is easier when you have the plug in.

great info..

Great info ... thanks. M

Thanks rufat, good info.........Frank

Thank you for this information!

Good job, Rufat!

Thanks for this Rufat. Very helpful.

thanks, I've been having problems with my comment box, there is a link at the bottom of the page that says no comment, I click it and it opens but next time I go to the page it is closed again! I will try this out maybe

You can also try to do the following: there is a "quick edit" option next to every page in the dashboard. Click on that option to make sure that "allow comments" box is checked.

Thank you!

Thanks for sharing. Good stuff!

Glad you found it helpful. Thank you.

See more comments

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training