Overriding Base Template File in Magento 2 – Theme Overriding Guide

magento2overridingtheme-overriding

There is a file that is used asynchronously in the front end called listing.html at the following path.

vendor/magento/module-catalog/view/base/web/template/product/list/listing.html

It is used by the recently viewed to render recently viewed items.

I want to override this file in my Vendor/Theme/ folder.

I have already tried the following locations

design/frontend/FossilGroup/default/Magento_Catalog/templates/product/list/
design/frontend/FossilGroup/default/Magento_Catalog/web/template/product/list/
design/frontend/FossilGroup/default/Magento_Catalog/web/templates/product/list/
design/base/FossilGroup/default/Magento_Catalog/template/product/list/
design/base/FossilGroup/default/Magento_Catalog/templates/product/list/
design/base/FossilGroup/Magento_Catalog/template/product/list/
design/base/FossilGroup/Magento_Catalog/templates/product/list/
design/web/FossilGroup/default/Magento_Catalog/templates/product/list/
design/web/FossilGroup/default/Magento_Catalog/template/product/list/

Version: Magento 2.2

Best Answer

Copy this file

 vendor/magento/module-catalog/view/base/web/template/product/list/listing.html

Paste it here.

  app/design/frontend/Vendor/theme/Magento_Catalog/web/template/product/list/listing.html
Related Topic