gyrus / WordPress-Developers-Custom-Fields

A plugin to provide WordPress developers with tools for managing custom fields. Check the WP repository link below for the source - GitHub currently only used for issue tracking.
http://wordpress.org/extend/plugins/developers-custom-fields/
51 stars 11 forks source link

How can I load meta-boxes with hidden stlyle? #34

Open sailorsamoor opened 10 years ago

sailorsamoor commented 10 years ago

Exists here ability for loading a metaboxes with hidden style? If yes, how can I do it, please?

gyrus commented 10 years ago

Do you mean to disable the built-in styles and use your own? If so, there's a setting, css_url, which you can use to replace the built-in styles. In a theme, you would use it like this:

add_action( 'after_theme_setup', 'my_dcf_css' );
function my_dcf_css() {
    if ( function_exists( 'slt_cf_setting' ) ) {
        slt_cf_setting( 'css_url', get stylesheet directory uri() . '/css/my-dcf-styles.css' );
    }
}

I haven't tested this code, but it should give you the basic idea.

Let me know if your question was about something else.