Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Magento recommends against using "action" in Magento 2. Also, I don't think reference is valid as I have never seen it used. As far as I know, you can only use referenceBlock or referenceContainer in M2. Commented May 3, 2018 at 6:03
  • @ShawnAbramson , sorry i just edit my code. will you please check it. now it works Commented May 3, 2018 at 6:06
  • @Divyesh When I used the XML in your post I received an "Element 'page': This element is not expected." error I removed the page tags and tried again, but received another error "Element 'head': This element is not expected." Commented May 3, 2018 at 14:51
  • @here - Magento devs who are running with the Magento v2.3.4 or later can find their solution here because XML input field is no longer exists in v2.3.4 or later. devdocs.magento.com/guides/v2.3/frontend-dev-guide/layouts/… Commented Jun 2, 2020 at 20:54