Forums / Templates, Stylesheets, Page Layout / Just Upgraded- can't edit home page title in browser bar

Just Upgraded- can't edit home page title in browser bar

Locked

Started by elarya on 21 Aug 2008, 3:46 PM · Views: 4,000

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
21 Aug 2008, 3:46 PM
#1
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Just Upgraded- can't edit home page title in browser bar

Hi all :)

I recently upgraded from 1.37 to 1.38a at http://www.crochetgarden.com

I finally got everything done.. and I noticed on my home page in browser it says HOME_PAGE_TITLE

I went into the developers tool kit, and it directed me to includes/languages/english/meta_tags.php

However, I am using the file located in my CUSTOM folder at:
includes/languages/english/CUSTOM/meta_tags.php

So, I am wondering, how do I change / fix this? I am unsure how to edit the CUSTOM meta_tags.php file to have it reflect the proper home page title. And, incidentally, this is the only page doing this.. all the other pages are using the meta_tags.php file in my CUSTOM folder.

I apologize if this has been asked before!

21 Aug 2008, 3:56 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Just Upgraded- can't edit home page title in browser bar

What you are seeing is the actual title of the database variable that may have bad data or be blank. Either will work BUT, sometimes when we edit those entries we don't keep a close eye on the '. When you define a variable, it must have a single quote at the beginning and end of the define.
Go to the english.php in your Custom and look for HOME_PAGE_TITLE. You'll probably find ' versus '' at the end of the define. Add the second ' if you want it to be blank or, better yet, add the 'name of your site' and it should work.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Aug 2008, 4:06 PM
#3
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

Hmm, thank you. I looked in the includes/languages/CUSTOM/english.php and see nothing in regards to HOME_PAGE_TITLE

I will keep looking. Nothing came up on the developer's tool kit either except the meta_tags.php file, which is over-ridden by the CUSTOM/meta_tags.php..

Let me know if I was looking at the wrong file?

21 Aug 2008, 4:14 PM
#4
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Just Upgraded- can't edit home page title in browser bar

:oops:
I zigged when I should have zagged. Should have said -- in the languages/english/custom/meta_tags.php. If the title is blank, you may have a problem with TITLE or SITE_TAGLINE ( see note around line 23)

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Aug 2008, 4:22 PM
#5
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

Here is what it is in my meta_tags file in the custom folder.. (I am baffled)

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: meta_tags.php 4273 2006-08-26 03:13:52Z drbyte $
 */

// page title
define('TITLE', 'Crochet Garden!');

// Site Tagline
define('SITE_TAGLINE', 'Boutique Quality Patterns');

// Custom Keywords
define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');

// Review Page can have a lead in:
define('META_TAGS_REVIEW', 'Reviews: ');

// separators for meta tag definitions
// Define Primary Section Output
  define('PRIMARY_SECTION', ' : ');

// Define Secondary Section Output
  define('SECONDARY_SECTION', ' - ');

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

// Define divider ... usually just a space or a comma plus a space
  define('METATAGS_DIVIDER', ' ');

// Define which pages to tell robots/spiders not to index
// This is generally used for account-management pages or typical SSL pages, and usually doesn't need to be touched.
  define('ROBOTS_PAGES_TO_SKIP','login,logoff,create_account,account,account_edit,account_history,account_history_info,account_newsletters,account_notifications,account_password,address_book,advanced_search,advanced_search_result,checkout_success,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,cookie_usage,create_account_success,contact_us,download,download_timeout,customers_authorization,down_for_maintenance,password_forgotten,time_out,unsubscribe');


// favicon setting
// There is usually NO need to enable this unless you wish to specify a path and/or a different filename
//  define('FAVICON','favicon.ico');

?>
21 Aug 2008, 4:31 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Just Upgraded- can't edit home page title in browser bar

old file.
What version of Zen?

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

21 Aug 2008, 4:33 PM
#7
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

aha! I figured it out :) (To answer your question, I was using 1.37 and upgraded to 1.37a)

I took this line of code from the file includes/languages/english/meta_tags.php

// Home Page Only:
  define('HOME_PAGE_META_DESCRIPTION', '');
  define('HOME_PAGE_META_KEYWORDS', '');

  // NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
  define('HOME_PAGE_TITLE', 'Crochet Garden - Boutique Quality Patterns!'); // usually best left blank

and inserted it into the includes/languages/english/CUSTOM/meta_tags.php file! Maybe this will help someone else!

thank you for your help!! :)

21 Aug 2008, 4:34 PM
#8
afo avatar

afo

Totally Zenned

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

Re: Just Upgraded- can't edit home page title in browser bar

You have an old meta_tags.php. Add this block of code between "// Custom Keywords" and "// Review Page can have a lead in:"

// Home Page Only:
  define('HOME_PAGE_META_DESCRIPTION', '');
  define('HOME_PAGE_META_KEYWORDS', '');

  // NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
  define('HOME_PAGE_TITLE', ''); // usually best left blank


// EZ-Pages meta-tags.  Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
// If you wish to use defaults for any of the 3 items for a given page, simply do not define it. 
// (ie: the Title tag is best not set, so that site-wide defaults can be used.)
// repeat pattern as necessary
  define('META_TAG_DESCRIPTION_EZPAGE_#','');
  define('META_TAG_KEYWORDS_EZPAGE_#','');
  define('META_TAG_TITLE_EZPAGE_#', '');

// Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
// replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
// repeat pattern as necessary
  define('META_TAG_DESCRIPTION_page_name','');
  define('META_TAG_KEYWORDS_PAGE_page_name','');
  define('META_TAG_TITLE_PAGE_page_name', '');

Edit:

Or edit the new version of meta_tags.php to reflect your website information and upload it.

This is the version info from the latest meta_tags.php:

/**
 * @package languageDefines
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: meta_tags.php 6668 2007-08-16 10:05:09Z drbyte $
 */

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

21 Aug 2008, 4:36 PM
#9
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

Thank you Afo! I will add that all in... I guess I took a "quickie" fix? :)

21 Aug 2008, 4:37 PM
#10
afo avatar

afo

Totally Zenned

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

Re: Just Upgraded- can't edit home page title in browser bar

If you have something like WinMerge, you can compare the contents of the file and make the necessary updates.

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

21 Aug 2008, 4:39 PM
#11
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

By the way, is there a place that has a list where I might find what other "CUSTOM" pages of mine may need updating?

21 Aug 2008, 4:39 PM
#12
elarya avatar

elarya

New Zenner

Join Date:
Mar 2008
Posts:
55
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

disregard last message, you posted right when I did and answered my question :) Will do a search for WinMerge

25 Aug 2008, 4:03 AM
#13
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

afo:

You have an old meta_tags.php. Add this block of code between "// Custom Keywords" and "// Review Page can have a lead in:"

// Home Page Only:
define('HOME_PAGE_META_DESCRIPTION', '');
define('HOME_PAGE_META_KEYWORDS', '');

// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
define('HOME_PAGE_TITLE', ''); // usually best left blank

// EZ-Pages meta-tags. Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
// If you wish to use defaults for any of the 3 items for a given page, simply do not define it.
// (ie: the Title tag is best not set, so that site-wide defaults can be used.)
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_EZPAGE_#','');
define('META_TAG_KEYWORDS_EZPAGE_#','');
define('META_TAG_TITLE_EZPAGE_#', '');

// Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
// replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_page_name','');
define('META_TAG_KEYWORDS_PAGE_page_name','');
define('META_TAG_TITLE_PAGE_page_name', '');

> 
> Edit: 
> 
> Or edit the new version of meta_tags.php to reflect your website information and upload it.
> 
> This is the version info from the latest meta_tags.php:
> ```
/**
 * @package languageDefines
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: meta_tags.php 6668 2007-08-16 10:05:09Z drbyte $
 */

I am using a template called aaadisplay so the meta_tags.php file is in \includes\languages\english\aaadisplay\meta_tags.php. I edited the text for: define('HOME_PAGE_META_DESCRIPTION',
and define('HOME_PAGE_META_KEYWORDS',
but it still shows the default information that just lists the categories. Is there a setting somwhere else that need to be set before it uses the new information? Thank you in advance.

H. Light
Florida

26 Aug 2008, 6:35 PM
#14
hllight avatar

hllight

Zen Follower

Join Date:
May 2007
Location:
Port Charlotte, FL
Posts:
125
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

Could this be a version problem? I cannot get the meta descriptions and keywords to work on my site. I am using version 1.3.7. however, it does have the meta_tags.php file you described.

I am guessing that the person who recently made changes to my site, used this file which is from a later version of zen cart or an add on?

I would presume it would take more than just this one php file to make the HOME_PAGE_META_DESCRIPTION, HOME_PAGE_META_KEYWORDS and HOME_PAGE_TITLE to work properly.

H. Light
Florida

6 Apr 2010, 1:36 AM
#15
kconklin avatar

kconklin

New Zenner

Join Date:
Feb 2010
Posts:
61
Plugin Contributions:
0

Re: Just Upgraded- can't edit home page title in browser bar

afo:

You have an old meta_tags.php. Add this block of code between "// Custom Keywords" and "// Review Page can have a lead in:"

// Home Page Only:
define('HOME_PAGE_META_DESCRIPTION', '');
define('HOME_PAGE_META_KEYWORDS', '');

// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
define('HOME_PAGE_TITLE', ''); // usually best left blank

// EZ-Pages meta-tags. Follow this pattern for all ez-pages for which you desire custom metatags. Replace the # with ezpage id.
// If you wish to use defaults for any of the 3 items for a given page, simply do not define it.
// (ie: the Title tag is best not set, so that site-wide defaults can be used.)
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_EZPAGE_#','');
define('META_TAG_KEYWORDS_EZPAGE_#','');
define('META_TAG_TITLE_EZPAGE_#', '');

// Per-Page meta-tags. Follow this pattern for individual pages you wish to override. This is useful mainly for additional pages.
// replace "page_name" with the UPPERCASE name of your main_page= value, such as ABOUT_US or SHIPPINGINFO etc.
// repeat pattern as necessary
define('META_TAG_DESCRIPTION_page_name','');
define('META_TAG_KEYWORDS_PAGE_page_name','');
define('META_TAG_TITLE_PAGE_page_name', '');

> 
> Edit: 
> 
> Or edit the new version of meta_tags.php to reflect your website information and upload it.
> 
> This is the version info from the latest meta_tags.php:
> ```
/**
 * @package languageDefines
 * @copyright Copyright 2003-2007 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: meta_tags.php 6668 2007-08-16 10:05:09Z drbyte $
 */

I have been looking for several hours for an answer on how to fix my Home Page Title - THANK YOU SO MUCH FOR THIS EXCELLENT RESPONSE!! I am glad I came across this post!! You're the best