How to swap the post title and date in P2

- by

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.



If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

1 thought on “How to swap the post title and date in P2”

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.