Zen Cart Logo
Forums / General Questions / Home Page META tags

Home Page META tags

Locked

Views: 5,316

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
8 Jun 2009, 3:57 PM
#1
bilpuka avatar

bilpuka

New Zenner

Join Date:
Jun 2009
Posts:
11
Plugin Contributions:
0

Home Page META tags

Version 1.3.8 When viewing source on the Home Page the <meta name="keywords" content=" AND <meta name="description" content=" shows my categories alphabetically. I want to list my keywords and content myself. Can't figure out how to do it for the HOME PAGE. I understand how to do it for the products. Couldn't find any references for changing the META tags for the home page. Thanks.

8 Jun 2009, 4:06 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Home Page META tags

In a copy of your /includes/languages/english/meta_tags.php file find this section to fill 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
8 Jun 2009, 4:18 PM
#3
bilpuka avatar

bilpuka

New Zenner

Join Date:
Jun 2009
Posts:
11
Plugin Contributions:
0

Re: Home Page META tags

Cobra: Thanks. Do I fill in the description and keywords as you show in red? Should I change it in the english/classic/meta_tags.php or should I change it in the english/meta_tags.php ?

8 Jun 2009, 4:25 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Home Page META tags

Should I change it in the english/classic/meta_tags.php or should I change it in the english/meta_tags.php ?
According to the override convention NEVER alter the core code file...
So you would edit the file for the template you are using.....Actually you should not be using the "classic" template either opting for creating your own (can be a copy of the classic) with your own template name
Do I fill in the description and keywords as you show in red
I only posted the file contents with NO keywords yours should be like:

// Home Page Only:
  define('HOME_PAGE_META_DESCRIPTION', 'add yours here');
  define('HOME_PAGE_META_KEYWORDS', 'add yours here');
8 Jun 2009, 4:38 PM
#5
bilpuka avatar

bilpuka

New Zenner

Join Date:
Jun 2009
Posts:
11
Plugin Contributions:
0

Re: Home Page META tags

Kobra: Thanks again.
My store was set up by a guy who is no longer around and can no longer be contacted, and I'm not sure about all he did. I'm assuming the core is where english/meta_tags.php is located and that I shouldn't change or use the classic either. You mention "you would edit the file for the template you are using". This assumes I know what template is being used and where to find it. If I change english/meta_tags.php where do I save it to? I'm no idiot but I'm having a lot of trouble understanding some of the finer details, mostly because I wasn't involved with setting it up in the beginning. If you're available to assist for remuneration, let me know and I'll contact.

28 Jul 2009, 11:52 AM
#6
rashuweb avatar

rashuweb

New Zenner

Join Date:
Jul 2009
Location:
india
Posts:
28
Plugin Contributions:
0

Re: Home Page META tags

i don't find HOME_PAGE_META_DESCRIPTION option on my meta_tags.php file? it starts from title please let me know how to add meta des, key word for home page etc..
my meta_tags.php file:

<?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', '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: '); // 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'); ?>
29 Jul 2009, 10:55 AM
#7
rashuweb avatar

rashuweb

New Zenner

Join Date:
Jul 2009
Location:
india
Posts:
28
Plugin Contributions:
0

Re: Home Page META tags

i followed the above process but :huh: the key words and description are same in all pages

13 Sep 2010, 3:56 AM
#8
sunnyokanagan avatar

sunnyokanagan

New Zenner

Join Date:
Sep 2010
Location:
Kelowna, British Columbia
Posts:
12
Plugin Contributions:
0

Re: Home Page META tags

I want to change the default Zen Cart! title of my home page.

kobra:

In a copy of your /includes/languages/english/meta_tags.php file find this section to fill 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

My default looks like thsis

// 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

but if I change to this, my site just goes blank

// Home Page Only:
define('HOME_PAGE_META_DESCRIPTION', 'my description here');
define('HOME_PAGE_META_KEYWORDS', 'my keywords here');
define('HOME_PAGE_TITLE', 'my title here');
// NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
// usually best left blank

What am I missing please?