Support

Account

Home Forums Gutenberg ACF-Gutenberg: Add fields to "sidebar" of block

Helping

ACF-Gutenberg: Add fields to "sidebar" of block

  • Hey there,

    currently we work more with the new gutenberg editor and ACF 5.8+. We created a few blocks and added fields with ACF – this works great. But now we want to move some fields permanent from the “editor”-Screen to the “sidebar” of the block.

    Some core blocks do this (eq paragraph).

    https://richardtape.com/2018/10/05/add-a-custom-sidebar-panel-to-gutenberg/

    Is this possible with acf created blocks?

    Thanks for your help.

    • Jebble

    • June 27, 2019 at 9:27 pm

    The fields show in the sidebar automatically when you have the block in Preview mode.
    If you switch to edit mode the sidebar fields disappear and are shown in the block instead.

    Do you want to have full control over what shows in the editor and what shows in the sidebar however then you’d need to create the blocks yourself with Javascript & React.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.