Custom Fields
Re-Envisioned
Support MB Blocks How to use an image as Gutenberg block preview?

  • Creator
    Topic
  • #18971
    Resolved Mauro
    Participant

    Hello, in the tutorial it’s stated that a block preview (the one that appears in the blocks selection popover, not in the main editor area) — is a rendered version of the block with sample data.

    However it looks like it is possible to use a static image instead, which would be my preference since the small preview area won’t allow most of my custom blocks to render correctly.

    I found a tutorial to use an image as the block preview (see link below), how can I do the same for blocks created with MB Blocks?

    https://mediaron.com/how-to-enable-gutenberg-block-previews/

    Thank you!
    Mauro.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #18991
    Long Nguyen
    Moderator

    Hi Mauro,

    The extension MB Blocks supports to show the image on the preview block area, please follow the documentation and see my screenshot.

    Remember to create the property name as the same as the field ID and the preview area will render the template of the block with the preview value.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.