Support » Plugin: Stackable - Page Builder Gutenberg Blocks » Possible to change defaults on blocks?

  • Resolved immersusmedia


    Hi there,

    Hoping to use Stackable on a production site but we were wondering:

    1. Is it possible to either change the style defaults or disable the controls for certain users or roles? For example, most of Stackable’s elements have a border radius of 12px. We’d like to either change this default or disable the option completely so a user on the site can’t inadvertently change the styling in a way that doesn’t match what was predetermined.

    2. Also, is it possible to change or override the markup produced by Stackable blocks in anyway? For example, if we want to add a card but there is a special class included in the output rather than simply adding said class via the ‘Advanced’ editing option, is that possible?

    Thanks in advance for your help.

Viewing 1 replies (of 1 total)
  • Plugin Contributor gambitph


    About the questions:

    1. It’s currently not possible to set different style defaults or option available for different users/roles.

    2. This isn’t possible also in Stackable without modifying how blocks are registered to the block editor. However, the block editor has a blocks.registerBlockType JS filter that fires right before blocks are registered. You can use that to override some of the block’s settings. There’s also a blocks.getBlockDefaultClassName filter that can be used to change the classNames generated for the blocks.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to change defaults on blocks?’ is closed to new replies.