Support

Account

Home Forums Gutenberg ACF Blocks – Prevent Style load in Frontend? Reply To: ACF Blocks – Prevent Style load in Frontend?

  • Another thing… If You want to style the blocks & controls – why not just make css file for it and just add it to backend like:

    add_action('admin_head', 'my_custom_acf_styles');
    
    function my_custom_acf_styles() {
      echo '<style>
        .my-field-class {
          font-family: "Lucida Grande";
          font-size: 12px;
        } 
      </style>';
    }