Support

Account

Home Forums Front-end Issues Disabling admin css for front end form Reply To: Disabling admin css for front end form

  • This worked for me:

    // disable acf css on front-end acf forms
    add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
     
    function my_deregister_styles() {
      wp_deregister_style( 'acf' );
      wp_deregister_style( 'acf-field-group' );
      wp_deregister_style( 'acf-global' );
      wp_deregister_style( 'acf-input' );
      wp_deregister_style( 'acf-datepicker' );
    }