Create a custom front-page.php template file in your theme and omit the call to <?php comments_template(); ?>
.
HI esmi –
this doesn’t work – I have comments disabled site wide.. all my pages are static (except the one I’ve designated as the blog page) – and on all pages I have (comments are closed) written on the bottom..
but for some reason, I have a comment box sitting on my front page 🙁
I’ve gone into files and commented out all kinds of comments related stuff but – nothing is taking it off the front page..
this is wordpress v 3.2.1
all the pages use the default template – and the default template(s) doesn’t include <?php comments_template(); ?> – includingpage.php, index.pho, category.php, well.. any of them.. I don’t have any especially custom things in there..
i’ve been searching for a solution half the night.. .. I think I may be going mad 🙂
thanks for any help
-s123
ok.. forget it.. I’ve edited comments.php – it’s a messy hack, but I basically hard-removed any reference to comments or forms or whatever .. it’s very odd that it was displaying on the front only..
is it because <?php comments_template( ”, true ); ?> was in loop_single.php and loop-page.php ? – I had commented it out in loop.php though :-/
thanks anyway!
-s123
ahh.. I discovered that when it’s on the front page, instead of loop.php, or loop_single.php being called it was loop_page … all sorted now
Thanks Stratus123! Worked like a charm!
(@joonasa)
12 years, 10 months ago
I’ve found problem solving attempts and guides of different types for my problem, but seem not to be able resolve.
I’ve changed my front page from blog type into static front page. I would strongly prefer not having the comments box on my static front page. None of my other pages have the comment box.
How do I get it removed?
http://luonnotar.com is the address
Thank you already in advance!
– Joonas