ghostkit
ghostkit copied to clipboard
Get Ghostkit Extensions to work with custom ACF blocks
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?
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
Update: with Lazy Blocks plugin it will be possible in the next update (will be available in 1-2 days).
Probably this may help in integration with ACF Blocks too https://github.com/nk-o/lazy-blocks/commit/4bb113faac676f7f86cdf73f7b2fe4730c93642c
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.