If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / how do I change the the title meta_tags and <h1> line

how do I change the the title meta_tags and <h1> line

Locked

Started by gardenablaze on 15 Oct 2008, 6:50 AM · Views: 2,396

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
15 Oct 2008, 6:50 AM
#1
gardenablaze avatar

gardenablaze

New Zenner

Join Date:
Oct 2008
Posts:
4
Plugin Contributions:
0

Post #1 by gardenablaze

I'm new to customizing my site and would like to change those to include my keywords for better search engine hits. I don't know how to change my <title> line and <h1>header tag and <h2>header tag

15 Oct 2008, 12:58 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Post #2 by afo

Have you looked in includes/languages/english/YOUR_TEMPLATE/meta_tags.php?

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

15 Oct 2008, 2:08 PM
#3
dudeshouse avatar

dudeshouse

New Zenner

Join Date:
Dec 2005
Location:
Portishead, UK
Posts:
32
Plugin Contributions:
0

Post #3 by dudeshouse

Copy your meta_tags.php file from includes/languages/english/ to the folder that afo gave above first, then amend it as necessary.

...there is nothing worse than aggresive stupidity...

16 Oct 2008, 3:11 AM
#4
gardenablaze avatar

gardenablaze

New Zenner

Join Date:
Oct 2008
Posts:
4
Plugin Contributions:
0

Post #4 by gardenablaze

Sorry I'm an ultra noob, I saw that on the faq's. My trouble is that I don't know how to find includes/languages/english/YOUR_TEMPLATE/meta_tags.php, I've been trying to find it from admin home and in the tool bar. I guess I need it to be spelled out for me.

16 Oct 2008, 3:18 AM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Post #5 by afo

YOUR_TEMPLATE (in the tutorials/FAQ, it's usually called CUSTOM) represents a folder that you create. You can call the folder whatever you like.

As dudeshouse pointed out, you copy includes/languages/english/meta_tags.php into includes/languages/english/YOUR_TEMPLATE/meta_tags.php and edit the copy in includes/languages/english/YOUR_TEMPLATE/meta_tags.php.

This list is outdated, but it'll give you an idea of what you need to create a custom template:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php <- may not be necessary
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

18 Oct 2008, 4:17 AM
#6
gardenablaze avatar

gardenablaze

New Zenner

Join Date:
Oct 2008
Posts:
4
Plugin Contributions:
0

Post #6 by gardenablaze

and you can do this from the back of the zen cart website?

18 Oct 2008, 4:39 AM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Post #7 by afo

No. You should have a copy of Zen Cart unzipped on your local drive. Use a good text editor like Notepad++ or Crimson Editor to make the changes. You'll need an FTP client like FileZilla to upload the changes to your website.

All the programs I mentioned are free downloads on the net.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

23 Oct 2008, 9:59 AM
#8
redisme avatar

redisme

New Zenner

Join Date:
Oct 2008
Posts:
3
Plugin Contributions:
0

Post #8 by redisme

Hi,

i could not find the meta_tags.php inside the folders mentioned above. Any ideas why? thanks~

I want to change the Title and the alt text for the logo.

23 Oct 2008, 12:48 PM
#9
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Post #9 by afo

What version of Zen Cart are you using? The default copy of meta_tags.php should be in includes/languages/english/. Copy it into your custom folder and edit it as you wish.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey