You need to add:
<?php comments_template(); ?>
Where ever you want comments to appear! The checkboxes just allow for that to happen, but if you’re missing that line of code, it’ll never show anyway. Typically it’s found at the bottom of your single.php page, but it can be placed anywhere you want people to leave/read comments.
Hi, Was just looking in the library of my theme and i can’t seem to find the single.php file in there. I made my template in artisteer and exported it to wordpress. Any idea where i might find
single.php?
sry template should read *theme
single.php is the page that would show a single post… Usually in a blog you’d have a “page of posts” showing a list of posts and a short excerpt. When you click on one of the posts, you are taken to single.php to see the whole post.
If you don’t have a single.php, then the single posts would display on index.php by default.
If you are working with pages, and not posts, then you should have a page.php file. If you don’t have that, pages will use index.php by default.
Check out the WordPress Template Hierarchy for more info on what items use what files to be displayed!
I found the index php in the public.html folder and edited to read
<?php
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(‘WP_USE_THEMES’, true);
/** Loads the WordPress Environment and Template */
require(‘./wp-blog-header.php’);`
I realised i must not be on the right track when my site disappeared. Am i on the righ track?
`
<?php comments_template(); ?>
sorry about that mess i highlighhted the code and pressed code but i guess i’m doing that wrong as well!
No no no no no… Undo that at once! 🙂
The files you are going to be looking for will be located in public_html/wp-content/themes/[name of your theme]/
Replace [name of your theme] with the name of your theme. You should find an index.php file there, but now that I know you are looking in the wrong place, you might find single.php and others 🙂
Great Thanks! i have edited the page.php to show comments at the bottom of the pages where i need them ( :. However they are aligned to the left and i would like them to be centered. Could you help me with this please?.
Also i have a ‘blog’ page on my site where all posts will be displayed – which php file do i edit to display comments at the bottom there?
ignore my comment about the blog page please.
ok worked it out – i had the code in the wrong place. Thanks for the help ( :