Problem with Area setBlockWrapperStart and setBlockwrapperEnd Functions
Permalink
I have this piece of code in my default.php file:
I expected the functions to wrap every block inside this area in the set HTML code. Instead it wraps the whole layout row and not the individual blocks. Any ideas what I am doing wrong here? Is there a different function for this purpose?
<div class="row"> <div class="columns medium-12"> <main class="main-content"> <div class="inner-main-content"> <?php $a = new Area('Main'); $a->setBlockWrapperStart('<div class="o-BlockWrapper">'); $a->setBlockWrapperEnd('</div>'); $a->setAreaGridMaximumColumns(12); $a->display($c); ?> </div> </main> </div> </div>
I expected the functions to wrap every block inside this area in the set HTML code. Instead it wraps the whole layout row and not the individual blocks. Any ideas what I am doing wrong here? Is there a different function for this purpose?