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
Views: 4,260
Totally Zenned
Where/how do I set the Home page/site Title and Meta Tags for the search engines to pick up. ?
Kevin
Totally Zenned
might try looking in the
includes/languages/english/meta_tags.php
remember to save it to your template over rides folder
Totally Zenned
where is the page Title set?
New Zenner
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>Totally Zenned
Thanks Paul,
But, on which page? It's not on the MAIN page in Define Pages.
New Zenner
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
Totally Zenned
I'm still trying to find out WHAT page I need to edit for the Site Title??
New Zenner
As Merlinpa1969 & Matchworker said, you need to edit
includes/languages/english/meta_tags.php
Edit the first 2 define statements around lines 11 & 14.
Totally Zenned
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: '); ?>New Zenner
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
Totally Zenned
Nope. It shows the CORRECT title. But, if I go to define pages/Main , it doesn't have a title.
New Zenner
so it does - nice looking site
New Zenner
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.
Tell staff why this post should be reviewed.