2

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
asked Jun 5, 2017 at 18:20
1
  • Did you get my answer? Commented Jun 6, 2017 at 7:39

1 Answer 1

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
1
  • 1
    I want to show only error msg in below login button Commented Jun 6, 2017 at 7:57

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.