AdvancedCustomFields / AdvancedCustomFields/acf

Block styles preview in edit mode shouldn't display ACF fields

Open
#388 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
945
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Hi, when I'm in edit mode of ACF block, styles preview in block toolbar and the sidebar shows the block appearance in edit mode as well.
I think it makes no sense (styles usually are not applied to ACF fields but the front-end) and seems to be performance heavy (it renders the whole fields infrastructure within those thumbnails).

Could it be avoided? I think we should preview the block in visual mode in those places. Or even nothing is better than that bunch of fields...

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how ACF block previews are rendered in the block toolbar and sidebar while editing, then identify the entry point that supplies the edit-mode fields to those thumbnails. Done means those previews show the block visually without rendering the ACF fields, or are omitted, while the normal edit view remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.