WordPress-Developers-Custom-Fields icon indicating copy to clipboard operation
WordPress-Developers-Custom-Fields copied to clipboard

How can I load meta-boxes with hidden stlyle?

Open sailorsamoor opened this issue 10 years ago • 1 comments

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

sailorsamoor avatar Sep 19 '14 16:09 sailorsamoor

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.

gyrus avatar Sep 19 '14 17:09 gyrus