Support

Account

Home Forums Gutenberg Gutenberg Custom ACF Block – Column Width context

Unread

Gutenberg Custom ACF Block – Column Width context

  • I have my own custom ACF block Type for use within Gutenberg. It works really well. My block has a responsive image in it. My custom ACF block can be placed within Gutenberg columns as well. I need to know the context of the block so that I can write the appropriate SIZES attribute on my picture element (so that the correct sized image is downloaded).

    But I don’t know if the parent block is fullwidth, or wide, or in a single column layout, two column layout, or a three column layout.

    Is there a way to know this information? I can’t see it within the scope of the block when I debug :-S

Viewing 1 post (of 1 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.