Hello Bricks developers. I still don’t know why the feature wasn’t added, so I added it myself. If you need it, use it. It’s easy to do, but why it isn’t there remains a mystery.
- Add before line: $this->controls[‘showPlaceholder’] = [
$this->controls['noWrapper'] = [
'label' => esc_html__( 'Don\'t wrap in div', 'bricks' ),
'type' => 'checkbox',
'description' => esc_html__( 'Output shortcode directly without wrapping div element', 'bricks'),
];
- Change line: if ( $is_popup_template ) {
if ( $is_popup_template || isset( $this->settings['noWrapper'] ) ) {