Forums / General Questions / Moving meta title to end of meta description

Moving meta title to end of meta description

Locked

Started by cal on 27 Oct 2006, 10:22 AM · Views: 2,674

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
27 Oct 2006, 10:22 AM
#1
cal avatar

cal

New Zenner

Join Date:
Feb 2006
Posts:
54
Plugin Contributions:
0

Moving meta title to end of meta description

Hi

Due to no replies to my post of yesterday I am reposting my question. Which is important for SEO purposes and the visibility of any site. My client is running version 1.27.

At present the meta data in meta_tags.php is adding the meta title to the front of the meta description which is not good. It needs to be added to the end of the meta description. Does anyone know how to do this? See below:

This is how the data looks at present:

<title>AIR CARE : Industrial Office Cleaning Product Company : Janitorial Supplies</title> <meta name="keywords" content="CATERING CLEANING FLOOR CARE AUTOMOTIVE & MAINTENANCE PERSONAL PROTECTION EQUIP INDUSTRIAL SKIN CARE WASTE MANAGEMENT FOOTWEAR CLOTHING AIR CARE WASHROOMS SEALEY VAN LINE AIR CARE" /> <meta name="description" content="Industrial Office Cleaning Product Company : AIR CARE - CATERING CLEANING FLOOR CARE AUTOMOTIVE & MAINTENANCE PERSONAL PROTECTION EQUIP INDUSTRIAL SKIN CARE WASTE MANAGEMENT FOOTWEAR CLOTHING AIR CARE WASHROOMS SEALEY VAN LINE " />

This is how I would like the meta description to look:

<meta name="description" content="AIR CARE - CATERING CLEANING FLOOR CARE AUTOMOTIVE & MAINTENANCE PERSONAL PROTECTION EQUIP INDUSTRIAL SKIN CARE WASTE MANAGEMENT FOOTWEAR CLOTHING AIR CARE WASHROOMS SEALEY VAN LINE: Industrial Office Cleaning Product Company" />

Cheers

Cal

That Thou Art

27 Oct 2006, 10:36 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving meta title to end of meta description

find and edit the current meta_tags.php file it looks as this in default form:

// page title
define('TITLE', 'Zen Cart!');

// Site Tagline
define('SITE_TAGLINE', 'The 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: ');
?>

Re-arrange as you want

Zen-Venom Get Bitten

27 Oct 2006, 10:41 AM
#3
cal avatar

cal

New Zenner

Join Date:
Feb 2006
Posts:
54
Plugin Contributions:
0

Re: Moving meta title to end of meta description

Thanks for the reply, but I don't see where you can input the title tag into the end of the description tag on meta_tags.php.

I don't just want the whole title tag to come after the whole description tag. Zencart adds the title tag to the fornt of the descrition tag. I want it to add it to the end of the description tag. As far as I can tell you cannot do this from meta_tags.php

Cheers

Cal

That Thou Art

27 Oct 2006, 11:11 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Moving meta title to end of meta description

Actually because Zen is serverside php, what is rendered on page load is not what the bots see any way. there is a bot director that polls the parts of files that are used to create the full page that is displayed.

But if you are bent on it diplaying as you want look at the includes/templates/tempalate_default/common/html_header.php and you can re-order these items:

<!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" <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo META_TAG_TITLE; ?></title>
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="authors" content="The Zen Cart™ Team and others" />
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com" />
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<?php

Zen-Venom Get Bitten

27 Oct 2006, 2:10 PM
#5
cal avatar

cal

New Zenner

Join Date:
Feb 2006
Posts:
54
Plugin Contributions:
0

Re: Moving meta title to end of meta description

Cheers again for getting back to me cobra.

Still mis-understanding I think though.

All i want to do is make sure that the dynamically input title tag, in this case:

Industrial Office Cleaning Product Company :

which ends up here:

<meta name="description" content="Industrial Office Cleaning Product Company : AIR CARE - CATERING CLEANING FLOOR CARE AUTOMOTIVE & MAINTENANCE PERSONAL PROTECTION EQUIP INDUSTRIAL SKIN CARE WASTE MANAGEMENT FOOTWEAR CLOTHING AIR CARE WASHROOMS SEALEY VAN LINE " />

here instead:

<meta name="description" content="AIR CARE - CATERING CLEANING FLOOR CARE AUTOMOTIVE & MAINTENANCE PERSONAL PROTECTION EQUIP INDUSTRIAL SKIN CARE WASTE MANAGEMENT FOOTWEAR CLOTHING AIR CARE WASHROOMS SEALEY VAN LINE: Industrial Office Cleaning Product Company" />

It's the title tag that ends up actually in the descriptive tag itself that I want to move to the end of the descriptive tag. Not jsut a reordering of the full tags.

Any ideas?

Cal

That Thou Art