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.





Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.