WordPress.org

Support

Support » Themes and Templates » [Resolved] [Theme: Twenty Ten] How to remove author/date/etc from Pages only

[Resolved] [Theme: Twenty Ten] How to remove author/date/etc from Pages only

  • Hello!

    I have been searching Google and the forum for hours and have finally given up. I want to remove all the extraneous “Posted on”, author, etc from my Pages only – not my posts. All I can find is how to remove it from everything. I already figured out how to turn off comments and get rid of “Comments Closed” but now I’m stuck! I’m using the Twentyten theme (well it’s a child theme actually).

    Basically I want my Pages to not look like a blog – that’s what the posts are for. 🙂

    Thanks for your help!

    http://wordpress.org/extend/themes/twentyten/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Michael
    Forum Moderator

    @alchymyth

    as far as i can see, the latest twenty ten 1.2 does not show these any more.

    see page.php and loop-page.php of the theme.

    what is your version?

    link to your site?

    I’m using twentyten 1.2 (well I used it as the template for my child theme). And WordPress 3.1.2

    Here’s the blog: http://www.caninelifestyleacademy.com

    And a Page: http://caninelifestyleacademy.com/blog/contact-us/

    Michael
    Forum Moderator

    @alchymyth

    your theme does not seem to be based on twenty ten – unless it is extremely modified.

    try to edit page.php (if your theme does not have this template, make a copy of index.php and save it as page.php) and look for:

    <div class="entry-meta">

    remove this whole div.

    if your theme uses loop-page.php, make the edits there;

    if your theme uses loop.php, you might need to use a conditional statement to wrap around the above mentioned div;
    example:

    <?php if( !is_page() ) : ?>
    <div class="entry-meta">
    .....
    </div><!-- .entry-meta -->
    <?php endif; ?>

    Yeah it’s extremely modified. I used a tutorial to use Twentyten to integrate it into my site. I know just enough code to get myself into trouble, apparently…. 😉

    Anyhoo.

    That worked – the conditional statement in loop.php. Thank you so much!! It looks so much better now!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Theme: Twenty Ten] How to remove author/date/etc from Pages only’ is closed to new replies.