How to Add Text to Login Page in Magento 2

0
11282
How to Add Text to Login Page in Magento 2 | Mageworx Blog
Reading Time: 2 minutes

For either technical or other business-specific reasons, merchants need to keep their customers informed by adding custom text to the login page.

Magento 2 allows achieving that easily.

How? 

Read on to learn the quick step-by-step instructions with screenshots.

Adding Custom Text to Login Page

Out-of-the-box, you can add any block to the login page from your admin panel (CMS Block & Widget).

It can be also achieved similar to the block from sample data:

How to Add Text to Login Page in Magento 2 | Mageworx Blog

Before you begin:

Log in to Magento 2 admin panel.

Procedure:

1. In the left pane, under CONTENT, click Blocks.

2. In the upper-right corner, click the Add New Block button.

How to Add Text to Login Page in Magento 2 | Mageworx Blog

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

How to Add Text to Login Page in Magento 2 | Mageworx Blog

4.  To create a new widget, under CONTENT in the left pane, click Widgets.

5.  In the upper-right corner, click the Add Widget button.

How to Add Text to Login Page in Magento 2 | Mageworx Blog

6. In the Type box, select CMS Static Block.

7. In the Design Theme box, select the currently active theme on your store, and then click Continue.

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.

9. Under Layout Updates, set layout properties as required.

For example, in the Display on box, we’ve selected Specified Page and set this block to the After Page Header place.

How to Add Text to Login Page in Magento 2 | Mageworx Blog

To cover our case and add custom text to the login page, select:

Display On―Specified Page

Page―Customer Account Login Form

Container―as required

10. Under the Widget Options tab, select the recently created block.

How to Add Text to Login Page in Magento 2 | Mageworx Blog

11.  In the upper-right corner, click Save, and then clear the cache.

Here’s the result:

How to Add Text to Login Page in Magento 2 | Mageworx Blog

Wrap Up

We did our best to make it short and simple. Should you have any questions or difficulties adding custom text to the login page, feel free to leave a comment below. We are always happy to assist you.

I am a huge coffee fan. If I’m not drinking it, I’m likely to be busy with getting MageWorx projects done. Fond of reading sci-fi books (especially those about dwarfs, ogres and the post-apocalyptical world). My biggest dream is to find a huge chest of gold and buy my own uninhabited island. Happy husband. Proud father. Ah... and also I'm a certified Magento developer. ;)

LEAVE A REPLY

Please enter your comment!
Please enter your name here