1

I want to place a custom container inside the product wrapper on the category page. I have already tried

 <referenceContainer name="content">
            <container name="custom.description" htmlTag="div" htmlClass="custom-description" befor="-">
            </container>
        </referenceContainer>

But it does not work in my case. enter image description here

I just need to add a container between image and description. Actually I want to add a description in my custom container but add to cart button remains at that position.

Any help would be appreciated..!

Thanks in advance..!

1 Answer 1

2

Follow the following step(s) to add a new container inside the reference container.

  1. Override catalog_category_view.xml and add the following code.
<referenceContainer name="content">
    <container name="catnew" htmlTag="div" after="copyright">
        <block class="Magento\Framework\View\Element\Template" name="catnew-list" template="Module_Test::catnew.phtml" after="-"/>
    </container>
</referenceContainer>
  1. Add your the catnew.phtml file.
2

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.