How to Add Custom Text Message to Login Page in Magento 2?






An eCommerce store owner is required to inform his customers about the store. This information can be anything important related to your store, any information about the product, or any offer going on the store. Hence, it is necessary for them to add a custom text message to the login page in their Magento 2 store. In today’s article, we will help you with a guide to add custom text message to the login page.
Adding Custom Text to Login Page
You can add any kind of block to the login page from the admin panel. Here is a sample for the same:

First things first, Log in into the Magento 2 admin panel.
Now,
Follow the below mentioned steps:
Step 1.
In the left pane, under CONTENT, click Blocks.
Step 2.
In the upper-right corner, click the Add New Block button.

Step 3.
Fill in the fields as required, and then click Save in the upper-right corner.

Step 4.
To create a new widget, under CONTENT in the left pane, click Widgets.
Step 5.
In the upper-right corner, click the Add Widget button.

Step 6.
In the Type box, select CMS Static Block.
Step 7.
In the Design Theme box, select the currently active theme on your store, and then click Continue.
Step 8.
Under Storefront Properties, in the Widget Title field, name the widget.
You should also specify one or more store views to make your widget active. Specify sort order.
Step 9.
Under Layout Updates, set layout properties as required.
For instance, in the Display on box, we’ve selected Specified Page and set this block to the After Page Header place.

To cover add custom text to the login page, select:
Display On―Specified Page
Page―Customer Account Login Form
Container―as required
Step 10.
Under the Widget Options tab, select the recently created block.

Step 11.
In the upper-right corner, click Save, and then clear the cache.
Here’s the result:

Final Thoughts
Hope we helped you add custom text to your log in page. If you face any issue during the process, feel free to reach us out. Our experts would be happy to help.