Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
Not Tried but you can add directly in phtml with below code
<?php echo $this->getLayout()
to header.phtml works
Required, but never shown