0
    <?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <head>
        <title>Contact us </title>
        <meta name="description" content="Drop Down Your Query for the Promt Replies at info@abc.in and for Customer Care Support we have a Contact Number, Contact Us at  0000000000. Chat Support also Available. Track Orders." />
        <meta name="keywords" content=""/>
    </head>
    <body>
        <referenceContainer name="content">
            <block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml">
                <container name="form.additional.info" label="Form Additional Info"/>
            </block>
        </referenceContainer>
    </body>
</page>
1

Please run the below commands

php bin/magento setup:upgrade
php bin/magento setup:di:compile
rm -rf var/view_preprocessed/* var/page_cache/* -rf var/cache/*
chmod -R 777 Root path/*

If you change your code in XML you need to run setup:upgrade

Try this

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" layout="1column">
    <head>
        <title>Contact Us</title>
    </head>
    <body>
        <referenceBlock name="page.main.title" remove="true" />
        <referenceContainer name="content">
           //Your Block
        </referenceContainer>
    </body>
</page>
5
  • I run these commands but only description changed title not changed
    – jykmhar123
    Jul 24 '20 at 10:46
  • Its showing me customer login title in title tag
    – jykmhar123
    Jul 24 '20 at 10:47
  • 1
    I updated my answer please try it, i had used this code it is working
    – Sabareesh
    Jul 24 '20 at 11:02
  • 1
    @jykmhar123 Weather the code is working
    – Sabareesh
    Jul 24 '20 at 12:02
  • Thanks its working @sabareesh ji
    – jykmhar123
    Jul 25 '20 at 4:28
0

@sabareesh How to translate Meta Description ? <meta name="description" content="Enquiry?">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.