michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
340 stars 71 forks source link

How to use some custom styles for the APF? #160

Closed ghost closed 9 years ago

ghost commented 10 years ago

Hi Michael,

What is the best way (your way) to add some custom styles or style sheet for the admin framework that will not be overwritten in update of the framework. I looked first through the FAQ, the documentation and the tutorials before turning here for guidance on that?

Ciaran

michaeluno commented 10 years ago

Hi,

You can use the enqueueStyle() method.

$this->enqueueStyle(  'stylesheet url/path' , 'page slug (optional)', 'tab slug (optional)', 'custom argument array(optional)' );

Example

(in example/APF_Demo_Readme.php)

$this->enqueueStyle( plugins_url( 'asset/css/readme.css' , APFDEMO_FILE ) , 'apf_read_me' );