How to swap the post title and date in P2

wordpress-iconI’ve just posted this tweak in the WordPress P2 forum to help a user and thought I’d add it here too before I forget what I did.

To swap the post title and date in P2 we’ll first grab a reference to each element, then we move one up and the other down.

Like so:

/* swap post title and date */
#main h4 {
  margin-top: 30px;
  margin-bottom: 15px;
}
#main .postcontent h2 {
  margin-top: -65px;
}

Note that the date line does not have a selector for the author, so it’s difficult to remove it if that’s required. You can remove the entire line though (#main h4).

Add padding where appropriate.

You can leave a comment on my original post.