Use the following code to display the search form form.mini.phtml inside any Magento 2 template.
|
1 |
$this->getLayout()->createBlock('core/template')->setTemplate('catalogsearch/form.mini.phtml')->toHtml(); |
Displaying the search form (form.mini.phtml) in a template
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.