Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author kubiq

    (@kubiq)

    Hello,

    is it this plugin?
    https://www.ads-software.com/plugins/lazy-blocks/
    or do I need PRO version?

    Can you replicate the issue in some sandbox, or can you give me step-by-step instructions how to replicate this on my own?

    Thread Starter wp1605982g2n

    (@wp1605982g2n)

    Yes, that’s the one.

    No need for PRO version.

    1. Install Lazy Blocks
    2. Create a block and use PHP as Output method
    3. In php use template as provided in the Lazy Blocks docs:
    <InnerBlocks
      template="[
        [ 'core/heading', { content: 'Blocks locking example:', level: 4 } ],
        [ 'core/paragraph', {
          content: 'This paragraph you can\'t move and remove',
          className: 'custom-classname-here',
          lock: {
            remove: true,
            move: true,
          }
        } ],
        [ 'core/paragraph', { content: 'This one can be freely removed' } ],
      ]"
    />

    4. Use block in a post, try with and without Block Editor Bootstrap Blocks active

    If above does not work, let me know to give you access to a staging site I’m working on.

    Thank you!

    Plugin Author kubiq

    (@kubiq)

    I did what you wrote and everything works for me:

    Thread Starter wp1605982g2n

    (@wp1605982g2n)

    Take my sincere apology, I made a mistake in the code… I forgot to wrap the template with additional [].

    Sorry again and thank you for your good work!

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