AdvancedCustomFields / AdvancedCustomFields/acf

Gutenberg block - example data as placeholder

Open
#526 1 comment 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, I've been using acf blocks recently and I'm having two problems.

  1. How do I insert an image as a block preview in that little window that pops up when I hover the mouse over? Maybe i can force this window to a different size for a given block?

  2. I would like the sample content for a given block (example data) to be displayed as placeholders when a given field is not completed. The currently rendered block displays sample content on the page when the field is not completed. I would like it not to appear on my website, but only in the editor.

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

No files or tests are named. Start by reviewing the Gutenberg block and ACF block example/preview entry points, then separate the hover-preview image request from the editor-only placeholder request. Done should be defined as sample content appearing in the editor while not being rendered on the public page.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.