In the Login page, I want to show a message in below Login Button instead of page top.
How to change Login page error message position in below Login Button in Magento 2.
How to achieve this?
Prince Patel
23.1k10 gold badges102 silver badges124 bronze badges
-
Did you get my answer?Prince Patel– Prince Patel2017年06月06日 07:39:00 +00:00Commented Jun 6, 2017 at 7:39
1 Answer 1
Create customer_account_login.xml in your theme and move message block to customer.login.container
app/design/frontend/Vendor/theme/Magento_Customer/layout/customer_account_login.xml
customer_account_login.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="messages" destination="customer.login.container"/>
</body>
</page>
answered Jun 6, 2017 at 5:27
Prince Patel
23.1k10 gold badges102 silver badges124 bronze badges
-
1I want to show only error msg in below login buttonmy Test– my Test2017年06月06日 07:57:41 +00:00Commented Jun 6, 2017 at 7:57
default