Anyone know if there is a robust way to create a separate template for an ACF Custom Block when its shown in the block editor vs on the front-end? I’ve inserted some CSS that just shows/hides elements based on a body class only present in the admin, but that seems cludgy.
Also, trying to get transitioned to using the new block.json method for setting up blocks, but would like to have all block code in a custom plugin vs theme folder, for better portability. Is that possible, or does block code need to be in the theme /blocks/ directory?
Thanks!