ThemeShaper Forums » Power Blog

[closed]

Make Post Date Only Render on Index Page

(5 posts)
  • Started 12 years ago by Christian
  • Latest reply from Christian
  1. How can I make the date of the post show up only on the home page? In other words, the post date will show up on the home page of the site, but it will NOT show up on the actual post pages, any archive pages, etc.

    Posted 12 years ago #
  2. Hi Christian,

    this one will work:

    .meta-sep-entry-date {display:none;}
    .meta-prep-entry-date {display:none;}
    .entry-date {display:none;}
    .home .meta-sep-entry-date {display:inline;}
    .home .meta-prep-entry-date {display:inline;}
    .home .entry-date {display:inline;}

    Chris

    Posted 12 years ago #
  3. Just pop this into functions.php, correct? Much thanks!

    Posted 12 years ago #
  4. amygail
    Member

    Christian those are css declarations - put them in your child themes style sheet

    Posted 12 years ago #
  5. lol. Thanks amygail. Sometimes I just need to slow the heck down :) btw, this worked perfectly!

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.