3

I'm trying to move products element and can't find it's name to reference via XML. The element has class "products wrapper grid products-grid" in rendered HTML.

Using Magento 2.

This is the block

4
<block class="Magento\Catalog\Block\Product\ListProduct" name="category.products.list" as="product_list" template="Magento_Catalog::product/list.phtml">

So the block name is : "category.products.list"

Path: vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml

Example : to remove that block you have to do this:

<referenceBlock name="category.products.list" remove="true"/>
3

I'm seeing this referenced in the following file: vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml

  • There is only html structure with classes. But do you know the XML name? How can I reference to this block/container? – Andy Black Sep 16 '18 at 13:24
0

You can move product blog with move xml element

Path: Your-theme/Magento_Catalog/layout/atalog_category_view.xml

<move element="category.products" destination="name.of.destination.element" />  

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.