Web Analytics

Fill the form & Get Installation Support





    How to show sub category image with sub category name on list page in Magento 2?

    If you want to show sub category image with sub category name of current category page then follow below process.

    Get subcategory of current category

    Step 1 : create sub-category.phtml file under ../app/design/frontend/[VendorName]/[theme]/Magento_Catalog/templates/category/

    and paste below code inside it

     

    Step 2 : Add below mention code in ../app/design/frontend/[VendorName]/[theme]/Magento_Catalog/layout/catalog_category_view.xml

     

    After that run below commands

    – php bin/magento setup:upgrade
    – php bin/magento setup:di:compile
    – php bin/magento cache:clean

    That’s it.

    Now, sub category image with sub category name will show on list page.

    Fill the below form if you have any Magento programming need.





      Recent Articles

      Author Info

      Hire R. Patel

      Get a Free Quote





        Connect With Us