WordPress.org

Ready to get started?Download WordPress

Forums

Removal of unwanted content from page (7 posts)

  1. neu01
    Member
    Posted 2 years ago #

    Hi,
    I have installed the Machine 1.5 theme.I'm trying to get rid of the following content ,which is mentioned in each page:

    This entry was posted on Sunday, October 2nd, 2011 at 1:34 pm and is filed under .
    You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
    Edit this entry.
    Comments are closed.

    Appreciate your help in leeting me know how to resolve this.
    Thanks,
    Neil

  2. Hello neu01,

    In your Dashboard:

    • Navigate to the Appearance > Editor menu
    • Locate and click on single.php

    Locate and delete this block of code:

    <div class="meta">
    				<p>This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is filed under <?php the_category(', ') ?>.</p>
                    <p>You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { ?></p>
                    <p>You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { ?>Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { ?> You can skip to the end and leave a response. Pinging is currently not allowed. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { ?> Both comments and pings are currently closed.<?php } ?></p>
    				<p><?php edit_post_link('Edit this entry','','.'); ?></p>
    				</div>
    				<?php comments_template(); ?>

    Hope that helps.

  3. neu01
    Member
    Posted 2 years ago #

    Hi,
    Thank you for your reply. I followed the instructions,but going code for code,I was unable to tracke the exact content that you mentioned in your reply.Enclosed within is the code given which i see:
    <?php get_header(); ?>
    <div id="single">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2 class="title"><?php the_title(); ?></h2>
    <div class="entry">
    <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
    <?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    <p class="taginfo"><?php echo get_the_tag_list('Tags:',', ',''); ?></p>
    <div class="meta">
    <p>This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is filed under <?php the_category(', ') ?>.</p>
    <p>You can follow any responses to this entry through the <?php post_comments_feed_link('RSS 2.0'); ?> feed. <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { ?></p>
    <p>You can leave a response, or " rel="trackback">trackback from your own site. <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { ?>Responses are currently closed, but you can " rel="trackback">trackback from your own site. <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { ?> You can skip to the end and leave a response. Pinging is currently not allowed. <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { ?> Both comments and pings are currently closed.<?php } ?></p>
    <p><?php edit_post_link('Edit this entry','','.'); ?></p>
    </div>
    <?php comments_template(); ?>
    </div>
    </div>
    <?php endwhile; else: ?>
    <p>Sorry, no posts matched your criteria.</p>
    <?php endif; ?>
    </div>
    <!-- end #content -->
    <?php get_sidebar(); ?>
    </div>
    <div class="clear"></div>
    <?php get_footer(); ?>

  4. neu01
    Member
    Posted 2 years ago #

    Apologies..I was able to locate the code & delete it..I clicked on update & when I went back to my site,in admin mode,the same content is still showing :-(

  5. neu01
    Member
    Posted 2 years ago #

    The code I see now is <?php get_header(); ?>
    <div id="single">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <h2 class="title"><?php the_title(); ?></h2>
    <div class="entry">
    <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
    <?php wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    <p class="taginfo"><?php echo get_the_tag_list('Tags:',', ',''); ?></p>
    </div>
    </div>
    <?php endwhile; else: ?>
    <p>Sorry, no posts matched your criteria.</p>
    <?php endif; ?>
    </div>
    <!-- end #content -->
    <?php get_sidebar(); ?>
    </div>
    <div class="clear"></div>
    <?php get_footer(); ?>

  6. You should end up with this: http://pastebin.com/imkGmzt1

  7. neu01
    Member
    Posted 2 years ago #

    Hi DrewAPicture..
    I thank you for being pateint with me, thus far.
    I have gone through each line of code..but I'm unable to pinpoint where the necessary modification ahs to be done.

    I'm still getting the following content in my pages:
    This entry was posted on Sunday, October 2nd, 2011 at 1:34 pm and is filed under .

    You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

    Edit this entry.
    Comments are closed.

    I'm just at end,tearing my hair out to understand the logic..Appreciate your further inputs

Topic Closed

This topic has been closed to new replies.

About this Topic