Attributes

Table of Contents

This is a part of the Ghost Kit Pro plugin.
Purchase the Pro plugin to access this and other advanced features.

You may need to add custom HTML attributes when working with Ghost Kit and Core blocks. For example, it is helpful to use custom attributes for custom scripts, something like data-speed="3".

Enable in 3rd-party blocks

<?php
registerBlockType( 'my/block', {
    title: 'My block',
    supports: {
        ghostkit: {
            attributes: true,
        }
    },
    ...
} );
Was this page helpful?