I am trying to add advanced search form as a block in Pages, but the following code is not working?
{{block class="Magento\Framework\View\Element\Template"
template="Magento_CatalogSearch::advanced/form.phtml"}}
Thanks
advanced-searchblockscms-pagesmagento2
I am trying to add advanced search form as a block in Pages, but the following code is not working?
{{block class="Magento\Framework\View\Element\Template"
template="Magento_CatalogSearch::advanced/form.phtml"}}
Thanks
Best Answer
You need to change block class for Advance form.
It should be:
on each
phtml
, block class is defined like:If you need to customize
phtml
, copy it from:to