javascript - WordPress InnerBlocks Gutenberg don't save correct
one text
Solution:
The issue how the classes are being applied in save()
of wpptheme/faq-section
. CSS classes in React should be passed in with "className" property, unlike vanilla HTML.
Updated save()
for wpptheme/faq-section:
...
save() {
return (
<div className="container my-4 my-md-5">
<div className="row">
<div className="col-12">
<div className="accordion" id="faq">
<div>
<InnerBlocks.Content />
</div>
</div>
</div>
</div>
</div>
);
}
...
Source