We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could you make additional block markup wrapper voluntary, perhaps add a setting to "additional settings" section?
Talking about this, $allow_wrapper = apply_filters( $block['slug'] . '/' . $context . '_allow_wrapper', $result && 'frontend' === $context, $attributes );.
$allow_wrapper = apply_filters( $block['slug'] . '/' . $context . '_allow_wrapper', $result && 'frontend' === $context, $attributes );
The text was updated successfully, but these errors were encountered:
I'd like to see this too. In the meantime, I've doing this but it's not very tidy:
// Stript the outer div from a block as it's breaking Bootstrap grid function wporg_strip_outer_div( $block_content, $block ) { if (substr($block['blockName'], 0, 10) == 'lazyblock/') { return preg_replace( '/^<[^>]+>|<\/[^>]+>$/', '', $block_content ); } else { return $block_content; } } add_filter( 'render_block', 'wporg_strip_outer_div', 10, 2 );
Sorry, something went wrong.
@martynbiz why are you doing this? We have PHP filters - https://lazyblocks.com/documentation/php-filters/lzb-block_render-allow_wrapper/
No branches or pull requests
Could you make additional block markup wrapper voluntary, perhaps add a setting to "additional settings" section?
Talking about this,
$allow_wrapper = apply_filters( $block['slug'] . '/' . $context . '_allow_wrapper', $result && 'frontend' === $context, $attributes );
.The text was updated successfully, but these errors were encountered: