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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users