How to style the Add Media button in P2

- by
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


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.

7 thoughts on “How to style the Add Media button in P2”

Leave a Reply to ScophiCancel reply

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