custm-pro_1

In all magento store mostly we show any category products list at home page. for that purpose we use list.phtml file or any custom file to show product list at home page using following block:

 {{block type="catalog/product_list" category_id="3" template="catalog/product/list.phtml"}}

This block only show products list on home page, but it don’t show category name. For showing category name with that products list we need to add following code into list.phtml or any custom file you are using.
1. Go to app/design/frontend/default/your_theme/template/catalog/product and open list.phtml then paste following code :

load($this->getCategoryId())->getName(); ?>

2. Now relaod your store home page, you will see category name there.
3.Done.

About Author:

Kalpesh Chavada

Kalpesh Chavada is Our Founder & CEO of Akshar Group Technologies. He is serving with 11+ years of experience in different technologies like Magento, WordPress, Laravel, jQuery, Shopify, Branding, and Digital Marketing. He is very good with creative logic and always ready to take on challenges.

Kalpesh Author