Question

While I'm saving the static block extra div's are adding to static block. How to avoid the divs in Magento 2.3?

<div data-content-type="row" data-appearance="contained" data-element="main"><div data-enable-parallax="0" data-parallax-speed="0.5" data-background-images="{}" data-element="inner" style="justify-content: flex-start; display: flex; flex-direction: column; background-position: left top; background-size: cover; background-repeat: no-repeat; background-attachment: scroll; border-style: none; border-width: 1px; border-radius: 0px; margin: 0px; padding: 0px;"><div data-content-type="html" data-appearance="default" data-element="main" style="border-style: none; border-width: 1px; border-radius: 0px; margin: 0px; padding: 0px;" data-decoded="true">

I don't have the custom style enabled, and I just have HTML code in my custom block.

Magento 2 Page Builder CMS blocks

Magento 2 Page Builder CMS blocks

No correct solution

OTHER TIPS

Unfortunately, u cannot remove those divs that row is injected by magento and it's mandatory to have a row when creating contents using page builder. If its creating an issue with UI e.g it's not showing full width then try using the other Appearance like full-width or full-bleed on Row-level Setting.

there is one issue wherein it applies flex which breaks the UI in some cases. for this, u can apply a class or custom class that uses block.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top