I AM LISTENING TO
|

WHAT I LIKE

JSON Date (.NET) to PHP timestamp Masonary – grid layout library
Design     Development     WordPress    

WordPress Admin + Plugin Development + Less + Bootstrap = Awesome



10. April 2014

simpless

Bootstrap can not be added directly to the admin of a plugin, but you can wrap your plugin in a container and compile the Bootstrap CSS to use it as a wrapper.

I do my compiling using SimpLess

In the past you could do this using SimpLess directly (my-own-bootstrap.less).

This fails with the latest version of Bootstrap. But you can just paste the Bootstrap CSS into the LESS file and compile it that way.

Run it through SimpLess and after that the new CSS can be enqueued in WordPress ! This also works nicely with themes from Bootswatch.

Enjoy!




Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz