![]() | | ||||||||
| | #1 |
| HyperActive Warrior War Room Member Join Date: Mar 2009 Location: England
Posts: 476
Thanks: 30
Thanked 60 Times in 48 Posts
|
Hi everyone, I'm wondering how to make it possible to post comments on a Wordpress page? When I create a new page, I check the box saying "allow comments," but there's no comment box appearing. Is there a setting somewhere to achieve this, or are comments only allowed on posts? |
| | |
| | |
| | #2 |
| The Young Gun War Room Member Join Date: Jan 2009 Location: South Carolina
Posts: 689
Thanks: 54
Thanked 88 Times in 64 Posts
|
Hi Alex, This probably has something to do with your theme's page.php. In this page.php it must call to include the comments and a comment form. This include is probably missing from the page, but don't worry you can add it in. Feel free to contact me via any of the IM services to the left of this post and I can try to assist you. Preferably Skype or Yahoo IM. -Christian |
| | |
| | |
| | #3 |
| Watching you... War Room Member Join Date: Dec 2008 Location: Waterdown, Ontario, Canada
Posts: 5,963
Blog Entries: 2 Thanks: 1,574
Thanked 2,712 Times in 1,651 Posts
|
It depends on the page template you are using in your theme. The default Page template in any theme should be named "page.php" (check your theme folder). No, you can NOT change it with settings, you need to edit the template file(s). Normally, people don't want comments on Pages like AboutUs or Contact etc. so theme designers by default leave put the call for the comment template. You can always add it to your page.php - just open your single.php and watch for this line (or similar): <?php comments_template(); // Get wp-comments.php template ?> then copy it over into page.php Note. If you have only one Page Template (page.php) the above line will add the comment form to ALL your WP Pages. If you want to avoid it, create additional Page template(s) and while writing/editing the Pages select the proper template (with or without comments, as you need them). When you have more than one Page template, the template option will show in your admin panel. Learn more about creating your own Page templates: Pages WordPress Codex |
| In the first half of the year we are supposed to work for the taxman. I think that's a mistake. Help me to get rid of the taxman ASAP - thanks! (You, too, should make less mistakes!) | |
| | |
| | #4 |
| HyperActive Warrior War Room Member Join Date: Mar 2009 Location: England
Posts: 476
Thanks: 30
Thanked 60 Times in 48 Posts
|
Thanks for the advice, guys. Am I looking for a page called "single.php"? I don't see one. Or am I missing something? It would be nice if I can just copy and paste something into my "page.php" file and enable comments. It's for a launch blog, so this whole set up is only temporary, and I'd really like for comments to be allowed on pages. |
| | |
| | |
| | #5 | |
| The Young Gun War Room Member Join Date: Jan 2009 Location: South Carolina
Posts: 689
Thanks: 54
Thanked 88 Times in 64 Posts
| Quote:
<?php comments_template(); ?> Be careful as this most likely will need to be put within a div tag. That should display comments and the comment form as long as your theme has a comments template file. -Christian | |
| | ||
| | |
| | #6 |
| HyperActive Warrior War Room Member Join Date: Mar 2009 Location: England
Posts: 476
Thanks: 30
Thanked 60 Times in 48 Posts
|
Thanks, Christian!
|
| | |
| | |
| | #7 |
| The Young Gun War Room Member Join Date: Jan 2009 Location: South Carolina
Posts: 689
Thanks: 54
Thanked 88 Times in 64 Posts
|
Not a problem, good luck with your launch! -Christian |
| | |
| | |
![]() |
|
| Tags |
| comment, pages, wordpress |
| Thread Tools | |
| |
![]() |