WordPress.org

Ready to get started?Download WordPress

Forums

deleting code for posts and comments (5 posts)

  1. melanie bund
    Member
    Posted 3 years ago #

    am using the twentyten template and would like to know how to take out the posts and comments as the page should not look like a blog
    thanks
    melanie

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Don't edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

  3. melanie bund
    Member
    Posted 3 years ago #

    thanks so much for the fast reply - was so surprised - will try this...
    thanks again

  4. melanie bund
    Member
    Posted 3 years ago #

    but sorry next question if i do create a child theme do i just in css
    comment out the /* #comments {.... */ and the in the page.php comment out
    >!--<?php comments_template( '', true ); ?>--> ?
    i read that i could just take out

    * <?php the_time(‘F jS, Y’) ?><?php edit_post_link(‘, Edit’); ?>
    * <div class=”comm”><?php comments_popup_link(‘Post Comment’, ‘Comments (1)’, ‘Comments (%)’); ?></div>

    but this i cant find anywhere in the index or page or single page.php
    thanks
    melanie

  5. esmi
    Forum Moderator
    Posted 3 years ago #

    You need to create copies of these template files in your child theme. You can then edit the copies as much as you like.

    Your "missing code" block is probably in the parent's loop.php template file.

Topic Closed

This topic has been closed to new replies.

About this Topic