• Resolved indietrash

    (@indietrash)


    hi. I have no knowledge of php whatsoever, but I want to remove the “leave a comment” field. if anyone could help me out, it would be really appreciated. here’s the php for my theme:

    [code]

    <?php
    get_header();
    ?>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">

    <div id="small"><smallbg><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></smallbg></div>

    <h2>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h2>

    <div class="entry">
    <?php the_content('Read the rest of this entry »'); ?>
    </div>

    <p class="postmetadata"><i><?php the_tags('Tags: ', ', ', ''); ?></i> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>

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

    <?php comments_template(); // Get wp-comments.php template ?>

    </div>

    <?php endwhile; ?>

    <div class="navigation">
    <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
    <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
    </div>

    <?php else : ?>

    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.</p>
    <?php get_search_form(); ?>

    <?php endif; ?>

    <?php get_footer(); ?>

    [/code]

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    remove this bit for that

    do you want to remove the comment form also?

    Thread Starter indietrash

    (@indietrash)

    I have closed the comment form, so is there a reason for me to do that? thanks btw. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘removing “leave a comment”’ is closed to new replies.