ghostkit icon indicating copy to clipboard operation
ghostkit copied to clipboard

Get Ghostkit Extensions to work with custom ACF blocks

Open nikwins opened this issue 5 years ago • 3 comments

Because building own Gutenberg blocks is pretty tedious, I am using the new Advanced Custom Fields functionality to build my own blocks based on ACF fields. This works just fine, but my problem is that I can't use Ghostkits extensions on these blocks. The options for Spacing, Display and Animate on Scroll are not shown in the block sidebar. I really like Ghostkits functionality regarding the options to display content only on certain devices and animating blocks on scroll. Is there a way I can extend my own ACF blocks with these Ghostkits Extensions?

nikwins avatar Sep 30 '19 10:09 nikwins

Hi.

As ACF Blocks are dynamic PHP - I'm not sure there is an easy way to extend it with GhostKit extensions.

We also have our own alternative to ACF Blocks (https://lazyblocks.com/), that also may have such integration, but no luck yet https://github.com/nk-o/lazy-blocks/issues/3

nk-o avatar Oct 02 '19 08:10 nk-o

Update: with Lazy Blocks plugin it will be possible in the next update (will be available in 1-2 days).

image

Probably this may help in integration with ACF Blocks too https://github.com/nk-o/lazy-blocks/commit/4bb113faac676f7f86cdf73f7b2fe4730c93642c

nk-o avatar Oct 02 '19 09:10 nk-o

Hi Nikita,

thanks for your reply! I tried lazy-blocks before but encountered some issues, so I sticked with ACF, also because I already own a license for it. Will look into this again because I really need the features that GhostKit Extensions provide. Would be awesome if this could be implemented for ACF blocks too because I think there is quite some user base for it.

nikwins avatar Oct 02 '19 09:10 nikwins