Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Okay, I see what you’re saying. So if you have something similiar to this:

    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    Go ahead and delete just the comments part of the code, save, reload it and test the site. That should work in your themes.

    If you already have alot of entries in which you want to remove the comments link from, you can do it all in one shot instead of going through them all in your admin panel and disallowing comments for each post.

    If you’re using WordPress 2.0 or up look for your post.php page which will be in your theme folder, i.e wp-content/themes/classic for example. When you open up post.php you’ll notice in the post footer there is a bit of code that starts out with comments_popup_links this will be followed by some other code similiar to
    ('comments')__ ('comments (1)')__ ('comments %')')), something along those lines, sorry I’m doing this from memory. You’ll know when you see it, just delete that out of the post footer section and you’re all set, save and upload post.php and check out your site, all the comments links for each and every post should be gone. If your actual post is clicked on, under single post view someone would still be able to leave comments, what I’ve listed above will only remove the actual comments link from the post footer that shows up under your posts.

    You can either add an image before or after “Comments” or like you’re saying replace the text “Comments” with just the image instead.

    Currently you have:
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>

    To either add an image or completely replace “Comments” with an image, you would want to change it to:
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('<img src="/wp-content/themes/maggieb/sharedimages/icon-comments.png" /> (0)'), __('<img src="/wp-content/themes/maggieb/sharedimages/icon-comments.png" /> (1)'), __('<img src="/wp-content/themes/maggieb/sharedimages/icon-comments.png" /> (%)')); ?>
    </div>

    This will set it so you only have an image for Comments. On my site I actually have to put the full src for the image starting at http://…right to the image name for it to show up. It depends on whether your blog is right in the root folder or if it is in a folder within the root. Test it out, see what happens. Also you may find that you’ll want to include border="0" align="top" inserted between img src. So it would look like <img border="0" align="top src="http://example.com/blog/wp-content/themes/classic/img/comments.gif">

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)