Carbon fields – hide default wordpress editor (admin page)

Last update: 15 Травня, 2023

Category: WordPress

Tags: .

Container::make( 'post_meta', 'Hider' )
->where( 'post_template', '=', 'pages/name.php' )
    ->add_fields( array(
        Field::make( 'html', 'crb_information_text' )
        ->set_html( '<style>#carbon_fields_container_hider, #postdivrich { display: none!important; }</style>' )
) );

OR

/*** - contacts page - ***/
Container::make( 'post_meta', 'Hider' )
->where( 'post_id', '=', '12' )
    ->or_where( 'post_id', '=', '9' )
    ->or_where( 'post_id', '=', '68' )
    ->or_where( 'post_id', '=', '67' )
    ->add_fields( array(
        Field::make( 'html', 'crb_information_text' )
        ->set_html( '<style>#carbon_fields_container_hider, #postdivrich { display: none!important; }</style>' )
) );