Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Doh! Need Help With Meta Tags & Title

Doh! Need Help With Meta Tags & Title

Locked

Views: 1,705

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 May 2007, 4:06 AM
#1
brightstitch avatar

brightstitch

New Zenner

Join Date:
May 2007
Posts:
1
Plugin Contributions:
0

Doh! Need Help With Meta Tags & Title

:oops: I think I may have overwritten a file! I tried to change the Title on my Index page from "Zen Cart ..." I edited the meta_tags.php file that I found in: modules and then over-wrote the meta_tags.php file in: languages/english and languages/english/my_template (I thought they were all the same)

I keep finding references to a meta_tags.php file that is apparently more detailed than the one I have now, and I'm quite confused.

The title line on my main page now says "META_TAG_TITLE", even though the meta_tags.php says:

// page title
define('TITLE', 'Bright Stitch');
// Site Tagline
define('SITE_TAGLINE', 'Bringing You The Best In Counted Cross Stitch');
// Custom Keywords
define('CUSTOM_KEYWORDS', 'cross stitch counted pattern chart art photo fob scissor');

Is this the wrong meta_tag.php file to be in: includes/languages/english/my_template??

Thanks for help,
Cheryl

25 Jun 2007, 4:22 PM
#2
gfh2sag avatar

gfh2sag

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Doh! Need Help With Meta Tags & Title

I am having a similar problem and have searched all over the forums and tutorials/FAQ for a resolution. Here is what happened to me. I had my website and shopping site operational and running, then had to switch hosts because of extensive downtime. I had backups of most of my php and html files that I had changed, but not the database. So I installed Zen-Cart 1.3.7 on my new host (still the same locations, shop.gouldcomputing.us) and then started uploading my changed files one by one, making sure each one was fine as I went along. I never got any PHP errors, but I noticed later that my title bar is showing "META_TAG_TITLE", no matter where I go on the shopping site (I have not had a chance to add a product back into this, but on any of the other pages it still shows just the "META_TAG_TITLE"). My meta_tags.php file in /english and english/classic are fine and define TITLE as "GouldComputing" and also SITE_TAGLINE, etc. I notice when I view page source on my main page or any other page that it shows the following:

------------------------------------------<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"> <head> <title>META_TAG_TITLE</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="keywords" content="META_TAG_KEYWORDS" /> <meta name="description" content="META_TAG_DESCRIPTION" /> <meta http-equiv="imagetoolbar" content="no" /> <meta name="author" content="The Zen Cart™ Team and others" /> <meta name="generator" content="shopping cart program by Zen Cart™, <http://www.zen-cart.com> eCommerce" /> <base href="http://shop.gouldcomputing.us/" /> <link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet.css" /> <link rel="stylesheet" type="text/css" href="includes/templates/classic/css/stylesheet_css_buttons.css" /> <link rel="stylesheet" type="text/css" media="print" href="includes/templates/classic/css/print_stylesheet.css" /> </head> ----------------------------

I investigated the html_header.php in template_default/common
and from that it is picking up the CHARSET and HTML_PARAMS settings fine, but they are in english.php, not in the /english/meta_tags.php file.
I cannot remember if my old host had 1.3.7 installed or 1.3.6 - could this be the key?
Can anyone help with this problem? Nothing seems to work from all the other threads.
If anyone needs any more info, please let me know. Thanks!

25 Jun 2007, 5:08 PM
#3
gfh2sag avatar

gfh2sag

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: Doh! Need Help With Meta Tags & Title

I finally found the problem, posting it so that others with this may see.
As can be seen from other threads, there are two different meta_tags.php files.
The "larger" one is located under /includes/modules and the smaller one in which you define your site title, keywords, etc, is in /includes/languages/<your default language>/
If you are using overrides, you would then copy the smaller file to /includes/languages/<your default language>/<your custom template>/
If you are getting "META_TAG_TITLE" as your title in your browser bar, most likely you placed the smaller meta_tags.php file in an improper location.

2 Jul 2007, 1:00 PM
#4
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: Doh! Need Help With Meta Tags & Title

I have completed the custom meta tags for the individual products via the admin panel. However, I still get the same title on every page of my website.

Why isn't the custom meta title tag showing up on the individual product pages?

:smartalec: