ThemeShaper Forums » Thematic

[closed]

How to remove dates from posts?

(7 posts)
  • Started 7 years ago by artyarty
  • Latest reply from artyarty
  • This topic is not resolved
  1. I would like to have all dates removed on all posts and pages. How do I do this?

    This is my blog www.savecedar.com

    Thanks!

    Posted 7 years ago #
  2. have you tried anything? the could either override the postmeta or filter the postdate to be empty. i'd probably go w/ the former.

    Posted 7 years ago #
  3. Where would I find the filter for the postdate? I go to setting but I don't see anything.

    Thanks

    Posted 7 years ago #
  4. are you making a child theme? no offense, but you sound really lost. what you've asked for involves adding PHP code to the functions.php in your child theme.

    here's a primer on child themes if you are just starting out:
    http://www.catswhocode.com/blog/wordpress-how-to-easily-create-a-thematic-child-theme

    it is a touch outdated though as many of the remove_action and corallary add_actions have been repleaced by childtheme_overrides.

    Posted 7 years ago #
  5. I'm totally lost. I'm not a coder by any means, just some guy with a blog who clunks his way through. I can read instructions and figure stuff out, thats about it. Thank you for taking your time with me.

    Posted 7 years ago #
  6. The snippet of code you are looking for can be found at http://themeshaper.com/2008/07/28/custom-wordpress-hooks-filters-thematic-06/

    I have modified it to drop the dates.

    // Add a custom post header
    function childtheme_postheader() {
    global $post;

    if (is_page()) { ?>
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } elseif (is_404()) { ?>
    <h1 class="entry-title">404, Not Found</h1>
    <?php } elseif (is_single()) { ?>
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <div class="entry-meta">
    <span class="author vcard"><?php $author = get_the_author(); ?><?php _e('By ', 'thematic') ?><span class="fn n"><?php _e("$author") ?></span></span>
    </div><!-- .entry-meta -->
    <?php } else { ?>
    <h2 class="entry-title">" title="<?php printf(__('Permalink to %s', 'thematic'), wp_specialchars(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title() ?></h2>
    <?php if ($post->post_type == 'post') { // Hide entry meta on searches ?>
    <div class="entry-meta">
    <span class="author vcard"><?php $author = get_the_author(); ?><?php _e('By ', 'thematic') ?><span class="fn n"><?php _e("$author") ?></span></span>
    </div><!-- .entry-meta -->
    <?php } ?>
    <?php }
    }
    add_filter ('thematic_postheader', 'childtheme_postheader');

    It looks like you are actually running Thematic as your theme, you will want to create a child theme and add this to the child theme's function.php. Otherwise it won't work. You are going to want to figure out the child theme side of this, it will make your life much easier and is simple once you figure out not to actually modify Thematic itself. Here are a few more resources, http://op111.net/53/, http://forums.themeshaper.com/topic/how-to-change-the-look-of-thematic-with-a-wordpress-child-theme, http://www.themelab.com/2010/04/10/dissecting-astatic-thematic-child-theme-tutorial/.

    Feel free to ask questions, I just want to stress the importance of getting the understanding of child themes down... It makes your life much easier in the long run.

    Posted 7 years ago #
  7. Thank you so much. I will work on this and let you know how I do.

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.