Position

The Position extension sets a WordPress block to relative, absolute, fixed or sticky and offsets it from any edge. It also covers width, height, minimum and maximum size, and stacking order. Every value can be different on each screen size, so a badge that sits in the corner on desktop can drop back into the flow on mobile.

Available Tools

  • Position
  • Distance
  • Width
  • Height
  • Min Max Width
  • Min Max Height
  • zIndex

Enable in 3rd-party blocks

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