cancel
Showing results for 
Search instead for 
Did you mean: 

Display all the categories and sub-categories in home page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Display all the categories and sub-categories in home page

I am modifying MAgento 2.4 Luma theme for an online bookstore. What I am trying to do is, list all the available categories and subcategories in a left sidebar in home page to navigate easily to the content. I have added the product grid in home page, but I need this list as well.  I need to do this in CMS rather changing the code.

 

Can anybody help with this please?

3 REPLIES 3

Re: Display all the categories and sub-categories in home page

You need to refer below blog and check in your homepage,

http://ibnab.com/en/blog/magento-2/magento-2-frontend-how-to-call-category-collection-on-home-page

 

please, let me know if you have any issue.

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

Re: Display all the categories and sub-categories in home page

@senani_m

 

You need to create a widget to set category list on homepage without changing code. This can be done using this extension : https://github.com/emizentech/magento2-category-list-widget

Install this in your Magento and create a static block with category list widget.
I hope this would be helpful for you.

Re: Display all the categories and sub-categories in home page

@senani_m You can use the extension here https://github.com/magepow/magento2-categories this extension available feature categories widget so you can add it anywhere you want show and more awesome feature.