i have created block in theme in magento2.
block location is "theme-folder/template/html/header.phtml".
i want to add minicart in this Phtml file.
Magento – how to add minicart in custom header block in magento2
customheadermagento2mini-carttheme
Related Topic
- Full-Page Cache – Minicart in Header Cached by FPC
- Magento 1.8 – How to Add Minicart to Custom Block
- Magento – Magento 2.1.2: How to delete element “minicart” from the website to make the print invoice (print.xml)
- Magento 2 – Changing Minicart Header
- Magento 2 Layout Theme – Minicart and Searchbar Not Moving to Header Links
- Magento 2 – How to Add a New Block Template File
- Magento2 Custom Header – Add Currency Switcher Dropdown
Best Answer
Not Tried but you can add directly in
phtml
with below code