Edit your theme’s index.php file and remove all references to comments_popup_link(). You may have to repeat the process with category.php, archive.php and tag.php. In single.php, remove references to comments_template().
Hello,
I started in the index.php and removed the words you mentioned…
i got a Parse error: syntax error, unexpected
Sounds like you deleted either too much or too little. Look for <?php comments_popup_link(... some text will be in here ...); ?> and delete from <?php to ?>.
i tried what you suggested and even removed the whole line, but still got the error
As you will notice i ahve already edited out the author and timestamp, which worked fine.
<?php get_header(); ?>
<div id=”Main”>
<div class=”Container”>
<div id=”Sidebar1″>
<?php include (TEMPLATEPATH . ‘/sidebar1.php’); ?>
</div>
<div id=”PostSet”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”Post” id=”post-<?php the_ID(); ?>”>
</div>
<div class=”postheader”>
<h1>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h1>
<div class=”postdetails”>
</div>
<div class=”postmeta”>
</div>
</div>
<div class=”postcontent”>
<?php the_content(‘Read More’); ?>
</div>
<div class=”postcomments”>
<table>
<tr>
</td>
<td>
<?php comments_popup_link(”, ”, ”); ?>
</td>
</tr>
</table>
</div>
<div class=”clear”></div>
</div>
<div>
<div><?php next_posts_link(‘« Previous Entries’) ?></div>
<div><?php previous_posts_link(‘Next Entries »’) ?></div>
</div>
</div>
<?php else : ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn’t here.</p>
</div>
</div>
<?php endif; ?>
<?php get_sidebar(); ?>
</div>
</div>
<div class=”clear”></div>
<?php get_footer(); ?>
Delete:
<div class="postcomments">
<table>
<tr>
</td>
<td>
<?php comments_popup_link('', '', ''); ?>
</td>
</tr>
</table>
</div>
I’m looking to do the same thing, but there is no mention of comments in my index.php file. Where else might I find this code?
That depends on your theme and where the reference to comments is on the viewable pages.
So is there a way to do this?