[Support request] How can I lock the Gid?

Home Forums Support [Support request] How can I lock the Gid?

Home Forums Support How can I lock the Gid?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1982223
    digicube

    Hello is it possible to lock the grid block in the Block Templates?

    For example, everything just before the grid is locked, as soon I insert grid in my template, each element into the grid is free again, even user can add new blocks.

    Here is a sample of my code.
    Note: If I don’t use the grid, if I use just a container, elements are locked.

    `$post_type_object->template = array(
    array(‘core/group’, array(
    ‘templateLock’ => ‘all’,
    ), array(
    array( ‘generateblocks/container’,array(
    ‘innerContainer’ => ‘Full width’,
    ‘minHeight’ => ‘512’,
    ‘templateLock’ => true,
    ‘minHeightUnit’ => ‘px’,
    ‘backgroundColor’ =>’#cf2e2e’,

    ), array(
    array( ‘generateblocks/grid’,array(
    ‘columns’ => ‘1’,
    ), array(
    array( ‘generateblocks/container’,array(
    ‘isGrid’ =>true,
    ‘width’ =>’100′,
    ), array(
    array( ‘core/paragraph’, array(
    ‘placeholder’ => ‘Add Description…’,
    ) ),
    array(‘generateblocks/headline’, array(
    ‘content’ => ‘Enter Title’,
    ‘cssClasses’ => ‘headline__for__posts’,
    ‘element’ => ‘h1’,
    )),
    )),
    )),
    )),
    )),
    );`

    #1983224
    Leo
    Staff
    Customer Support

    Hi there,

    Please open a support topic in GB’s support forum:
    https://wordpress.org/support/plugin/generateblocks/

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.