Question

I need to change the title of my registration form. ex. apply for customer account enter image description here

How can I change the title?

Was it helpful?

Solution

Create a custom module

In custom module create a layout file name with customer_account_create.xml at

app/code/VendorName/ModuleName/view/frontend/layout/customer_account_create.xml

add below code to this file

<?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>

            <!-- and for the page title: -->
            <referenceBlock name="page.main.title">
               <action method="setPageTitle">
                  <argument translate="true" name="title" xsi:type="string">Your Page Title</argument>
               </action>
            </referenceBlock>

    </body>
</page>

Flush cache

php bin/magento cache:flush
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top