Shortcode without wrapper

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.

  1. 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'),
		];
  1. Change line: if ( $is_popup_template ) {
if ( $is_popup_template || isset( $this->settings['noWrapper'] ) ) {
1 Like

But ideally, a suggestion for improvement should be like this :slight_smile: