1

How do I create a new container referencing a parent container and move inside other containers. What I try

 <referenceContainer name="content">
        <container name="product.container" as="productContainer" htmlTag="div" htmlClass="product-container">
        </container>
</referenceContainer>
<move name="product.info.main" destination="product.container" />
<move name="product.info.media" destination="product.container" /> 
1

You have wrong display inside move,

plz try,

 <move element="product.info.main" destination="product.container"/>

use element instead of name in move tag.

  • thanks I already made but I do not have any containers now on the specified area – fefe Apr 19 '16 at 11:39
  • sorry cleaning the cache seems to bring back but now I have the container under the tab – fefe Apr 19 '16 at 11:45
  • you can use as alias inside move tag, use of as inside move An alias name that serves as identifier in the scope of the parent element. – Rakesh Jesadiya Apr 19 '16 at 11:48
0

There is a mismatch in syntax please correct it by replacing name attribute to element like below.

<move element="product.info.main" destination="product.container" />
<move element="product.info.media" destination="product.container" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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