I am calling getChildHtml() function on calling block html in my template, It was returning me only the content of the block which is saved in magento backend block section, i have imported them from demo. Its all going will, until i made changes to content in backend and saved. Now, Not not only html of the block in returning in getChildHmtl() function call, but it is now encircled with this div below

<div data-content-type="html" data-appearance="default" data-element="main" data-decoded="true">
 block html goes here.

Why this returned like this now after saving block in magento backedend? one reason may be this advanced setting saved first time, what do you think, i want to get rid of this uppper div enter image description here

2 Answers 2


In page builder when creating CMS block add class=> ignore-div then add style for it

.ignore-div {display: contents;}

It will ignore wrapper


A second solution which i havent tried can be, you remove outer Div and from top an bottom of the code, remove style tag and code, and add the class of top Div i-e "block widget-block" to the class text box.

[enter image description here1

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.