Zen Cart Logo
Forums / Basic Configuration / Meta Tags and Title

Meta Tags and Title

Locked

Views: 4,260

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
10 Feb 2007, 3:20 AM
#1
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Meta Tags and Title

Where/how do I set the Home page/site Title and Meta Tags for the search engines to pick up. ?
Kevin

10 Feb 2007, 3:23 AM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: Meta Tags and Title

might try looking in the
includes/languages/english/meta_tags.php

remember to save it to your template over rides folder

10 Feb 2007, 6:11 AM
#3
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Meta Tags and Title

where is the page Title set?

10 Feb 2007, 11:37 AM
#4
matchworker avatar

matchworker

New Zenner

Join Date:
Feb 2004
Posts:
59
Plugin Contributions:
1

Re: Meta Tags and Title

Kevin

I think the title is made up of the page title (line12) and the site tagline (line15).

When the title is generated it puts a comma between the two of these items.

Does anyone know how to remove the comma? - see below

TIA

Paul

<title>Artificial Flowers, | Wedding Flowers | Artificial Plants | Silk Flowers by Floralart</title>
10 Feb 2007, 3:00 PM
#5
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Meta Tags and Title

Thanks Paul,

But, on which page? It's not on the MAIN page in Define Pages.

10 Feb 2007, 10:40 PM
#6
matchworker avatar

matchworker

New Zenner

Join Date:
Feb 2004
Posts:
59
Plugin Contributions:
1

Re: Meta Tags and Title

Kevin

See what the Merlin guy said above ....

you need to open and then edit the file 'meta tags' with a text editor such as Notepad++

download the file from your host - includes/languages/english/meta_tags.php

edit it

upload it back again

(good idea to keep a copy of the original on your server in case you make a mistake)

Paul

11 Feb 2007, 2:45 AM
#7
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Meta Tags and Title

I'm still trying to find out WHAT page I need to edit for the Site Title??

11 Feb 2007, 3:58 AM
#8
spiderden avatar

spiderden

New Zenner

Join Date:
Feb 2007
Location:
Kenley, Surrey, UK
Posts:
6
Plugin Contributions:
0

Re: Meta Tags and Title

As Merlinpa1969 & Matchworker said, you need to edit

includes/languages/english/meta_tags.php

Edit the first 2 define statements around lines 11 & 14.

11 Feb 2007, 6:30 AM
#9
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Meta Tags and Title

NO active variables exist in this file. Site not pulling meta OR title from this file.

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | <http://www.zen-cart.com/index.php> | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | <http://www.zen-cart.com/license/2_0.txt>. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: meta_tags.php 1091 2005-03-29 06:48:38Z ajeh $ // // page title define('TITLE', 'A Test Site'); // Site Tagline define('SITE_TAGLINE', 'Testing Art of E-commerce'); // Custom Keywords define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping'); // Review Page can have a lead in: define('META_TAGS_REVIEW', 'Reviews: '); ?>
11 Feb 2007, 10:01 AM
#10
matchworker avatar

matchworker

New Zenner

Join Date:
Feb 2004
Posts:
59
Plugin Contributions:
1

Re: Meta Tags and Title

It does on my cart

I bet if you right click your site home page and look at the source you will see:

<title>A Test Site, Testing Art of E-commerce</title>

Paul

11 Feb 2007, 2:40 PM
#11
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Meta Tags and Title

Nope. It shows the CORRECT title. But, if I go to define pages/Main , it doesn't have a title.

Kevin
http://www.cvtreasures.com/

11 Feb 2007, 10:16 PM
#12
matchworker avatar

matchworker

New Zenner

Join Date:
Feb 2004
Posts:
59
Plugin Contributions:
1

Re: Meta Tags and Title

so it does - nice looking site

3 Feb 2008, 3:54 AM
#13
fortune_cookie avatar

fortune_cookie

New Zenner

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

Re: Meta Tags and Title

To remove or change the comma in between the title and the site tagline, change:

// Define Tertiary Section Output
define('TERTIARY_SECTION', ' xx ');

around line 52 in includes/languages/english/meta_tags.php

where xx is where the comma char was to whatever you want the separator char to be.