Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 2
HTML page of contact us page
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

hello ,
well for seo purpose i want to now the html page of contact us page where i can enter title, description and keyword.
Thank you

 
Magento Community Magento Community
Magento Community
Magento Community
 
Pulkit Seth
Sr. Member
 
Avatar
Total Posts:  107
Joined:  2011-08-18
 

Hi....

You can find the html of Contact us page in this location /template/contacts/form.phtml.

Cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
vjtemplates
Guru
 
Avatar
Total Posts:  408
Joined:  2010-12-15
Washington, USA
 

You can’t put keyword in a form file.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Hello
You can do this from the xml layout file.
Edit this file : app/design/frontend/{interface}/{theme}/layout/contacts.xml.
Look for this section:

<reference name="head">
            <
action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
        </
reference>
and change it to this:
<reference name="head">
            <
action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
            <
action method="setDescription" translate="title" module="contacts"><description>YOUR DESCRIPTION HERE</description></action>
            <
action method="setKeywords" translate="title" module="contacts"><keywords>YOUR KEYWORDS HERE</keywords></action>
        </
reference>

Clear the cache and refresh.

Cheers,
Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

Thanks
but not working

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Strange. It worked for me.
Make sure you edited the correct layout file.
Also did you clear the cache?
If you still don’t get a result tell me the Magento version you are using.
I tried it on 1.7.0.0.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

ver. 1.6.2.0

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Hmmm...it is the same on 1.6 also.
Try an other thing.
From the same layout file remove this line:

<action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
or change ‘Contact Us’ to something else and see if there is any change in the meta-title.
If it’s not then you probably are not editing the right file.

Marius.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

Hey ,
i pasted this <reference name=\\\"head\\\">
<action method=\\\"setTitle\\\" translate=\\\"title\\\" module=\\\"contacts\\\"><title>Contact us </title></action>
<action method=\\\"setDescription\\\" translate=\\\"title\\\" module=\\\"contacts\\\"><description>xyz</description></action>
<action method=\\\"setKeywords\\\" translate=\\\"title\\\" module=\\\"contacts\\\"><keywords>abc</keywords></action>
</reference>

i tried it but contact us become default for my whole footer .

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Here is wow the file contacts.xml should look like

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <
reference name="footer_links">
            <
action method="addLink" translate="label title" module="contacts" ifconfig="contacts/contacts/enabled"><label>Contact Us</label><url>contacts</url><title>Contact Us</title><prepare>true</prepare></action>
        </
reference>
    </default>

    <
contacts_index_index translate="label">
        <
label>Contact Us Form</label>
        <
reference name="head">
            <
action method="setTitle" translate="title" module="contacts"><title>Contact Us</title></action>
            <
action method="setDescription" translate="title" module="contacts"><description>YOUR DESCRIPTION HERE</description></action>
            <
action method="setKeywords" translate="title" module="contacts"><keywords>YOUR KEYWORDS HERE</keywords></action>
        </
reference>
        <
reference name="root">
            <
action method="setTemplate"><template>page/2columns-right.phtml</template></action>
            <
action method="setHeaderTitle" translate="title" module="contacts"><title>Contact Us</title></action>
        </
reference>
        <
reference name="content">
            <
block type="core/template" name="contactForm" template="contacts/form.phtml"/>
        </
reference>
    </
contacts_index_index>
</
layout>
 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

Well i am getting contact us title description and keyword on some footer pages such as advanced search search items site map plz tell me how can i remove it from that pages?

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

I don’t really understand.
Post a screenshot or a link to your website.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

yes plz check the title and url of the page hope you understand what i mean The url is of search tem page but i dont know how the title of contact us page is been there plz resolve this issue
Thanks

Image Attachments
magento footer issue.jpg
 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

This probably happens because you added the lines for the meta elements inside the <default> tag instead of <contacts_index_index>

 
Magento Community Magento Community
Magento Community
Magento Community
 
Prabhdeep
Jr. Member
 
Total Posts:  24
Joined:  2012-09-19
 

Now what should i do?

 
Magento Community Magento Community
Magento Community
Magento Community
 
tzyganu
Mentor
 
Avatar
Total Posts:  2205
Joined:  2009-11-18
Bucharest, Romania
 

Replace the full content of the contacts.xml with what I posted above.
If it doesn’t work I have no other idea what you can do.
Like I said, it worked for me without any problems.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 2