Timeline for Magento 2: add classes and icons to homepage widget
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7, 2017 at 12:24 | comment | added | Anshu Mishra | Yes, it is general. | |
Nov 7, 2017 at 11:51 | comment | added | Razvan Zamfir |
Is type="Magento\Catalog\Block\Product\Widget\NewWidget" generally applicable, or just for you? Can I use it as it is?
|
|
Nov 7, 2017 at 10:36 | comment | added | Anshu Mishra | @RazvanZamfir you can search on internet on how to create custom templates and create new theme and override templates in Magento2, I am sure you will find many helpful articles. devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/… may help you. | |
Nov 7, 2017 at 10:34 | comment | added | Anshu Mishra | Yes, you can choose your company name as namespace. | |
Nov 7, 2017 at 10:28 | comment | added | Razvan Zamfir |
Also, being really new to Magento, Whare can I find a good example custom_products_template.phtml (generic file name)?
|
|
Nov 7, 2017 at 10:26 | comment | added | Razvan Zamfir | NameSpace is company name, right? | |
Nov 7, 2017 at 10:24 | comment | added | Anshu Mishra | You can create new custom template inside app/design/frontend/NameSpace/custom-theme/Magento_Catalog/templates/product/widget/new/content/ | |
Nov 7, 2017 at 10:16 | comment | added | Razvan Zamfir |
Great stuff! One question: In what directory of my theme precisely shall I put my (not yet created) custom_new_products.phtml file?
|
|
Nov 7, 2017 at 10:13 | history | answered | Anshu Mishra | CC BY-SA 3.0 |