How to style the Add Media button in P2

Screen Shot 2013-02-20 at 11.08.52

Before…

I’ve noticed that the Add Media button in P2 version 1.4.2 is a bit too low when you write a Blog Post.

The button usually sits neatly above the status box, however it cuts into the top of the box due to the additional text field for the blog post – like so:

It’s not so pretty. As a quick fix we can shift it a few pixels higher, therefore it won’t interfere with the box anymore:

/* The Add Media button is too low when a blog post is selected */
#media-buttons {top: -2px;}

 

Add it to the bottom of your style.css sheet and you’re golden!

... and after the fix

… and after the fix





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.