WhitePhantom
Member
Posted 2 years ago #
Hi,
I've applied the iNove theme to my site, but can't figure out how to remove the 'Comments are closed' message from the bottom of every page. I've looked through the template files but can't find it. I'm not using WP as a blog - just as a website - so messages about comments are not relevant.
Many thanks,
J.
That theme's index.php displays that via this:
<span class="comments"><?php comments_popup_link(__('No comments', 'inove'), __('1 comment', 'inove'), __('% comments', 'inove'), '', __('Comments off', 'inove')); ?></span>
Related:
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
Template_Tags/comments_popup_link
WhitePhantom
Member
Posted 2 years ago #
Thanks Michael, I tried that but it didn't make any difference.
I looked at the code and that line seems to be only related to pages that have posts - it's enclosed within a "<?php if (have_posts())..." line of code. My pages don't have any posts.
Well, using the Template Hierarchy link I provided above, figure out what Template is displaying your "pages", and look at that.
WhitePhantom
Member
Posted 2 years ago #
Ok, I found it at last. I'd just been hoping that someone else would have come across this already and saved me trawling through code!
Thanks,
J.
I like to use http://wingrep.com when looking for stuff in the WordPress code.
I'm still not clear on how to remove the Comments are Closed message.
What am I supposed to do with the index.php file?
I just started building http://eppcorp.info today. I've worked on a few other WP sites before, but I'm still a noob so please keep it as simple as possible.
Thanks,
coz