SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH SPECIAL OFFER: ENJOY 3 MONTHS OF SHOPIFY FOR $1/MONTH

Magento 2 change page title, meta keyword, and meta description on the registration page

You can set Page Title and Page Browser Title separately using Magento 2.
If you want to set a Different Page title and browser tab title you need to do using programmatically.

You can set custom Page Title, Meta Title, Meta Description, Meta Keywords for any page using programmatically.

To day will use overide block \Magento\Customer\Block\Form\Register

Firstly create a module and create Block Register.php by path: Magepow\CustomMetaTitle\Block\Customer\Block\Form\Register.

<?php
namespace Magepow\CustomMetaTitle\Block\Customer\Block\Form;

class Register extends\Magento\Customer\Block\Form\Register
{

    /**
     * @return $this
     */
    protected function _prepareLayout() 
    {   
        parent::_prepareLayout();
        $this->pageConfig->getTitle()->set(__('Custom title Create New Customer Account 2'));
        $this->pageConfig->setKeywords(__('meta keywords goes here 2.')); // meta keywords
        $this->pageConfig->setDescription(__('meta description goes here 2.')); // meta description

        return $this;
    }
}

Next create a file di.xml in folder etc to overide block register.

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
     <preference for="Magento\Customer\Block\Form\Register" type="Magepow\CustomMetaTitle\Block\Customer\Block\Form\Register" />
</config>

Using the above way you can set custom meta keywords, meta description, meta title, and Page H1 title.

Run command in terminal

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy -f

php bin/magento cache:flush

Hope this article will help you in some way, You can see useful articles in the next articles.

Anything you need support from Magento 2 feels free to contact us at Magepow and

Phone: (+84)865633728

Email: support@alothemes.com