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.
Follow the below mentioned steps:
In the left pane, under CONTENT, click Blocks.
In the upper-right corner, click the Add New Block button.
Fill in the fields as required, and then click Save in the upper-right corner.
To create a new widget, under CONTENT in the left pane, click Widgets.
In the upper-right corner, click the Add Widget button.
In the Type box, select CMS Static Block.
In the Design Theme box, select the currently active theme on your store, and then click Continue.
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.
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
Under the Widget Options tab, select the recently created block.
In the upper-right corner, click Save, and then clear the cache.
Here’s the result:
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.