Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Home Page META tags

    In a copy of your /includes/languages/english/meta_tags.php file find this section to fill in:
    Code:
    // 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
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default 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 ?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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:
    Code:
    // Home Page Only:
      define('HOME_PAGE_META_DESCRIPTION', 'add yours here');
      define('HOME_PAGE_META_KEYWORDS', 'add yours here');
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jun 2009
    Posts
    11
    Plugin Contributions
    0

    Default 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.

  6. #6
    Join Date
    Jul 2009
    Location
    india
    Posts
    27
    Plugin Contributions
    0

    Default 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,a ccount_password,address_book,advanced_search,advanced_search_result,checkout_suc cess,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation,c ookie_usage,create_account_success,contact_us,download,download_timeout,customer s_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');

    ?>

  7. #7
    Join Date
    Jul 2009
    Location
    india
    Posts
    27
    Plugin Contributions
    0

    Default Re: Home Page META tags

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

  8. #8
    Join Date
    Sep 2010
    Location
    Kelowna, British Columbia
    Posts
    12
    Plugin Contributions
    0

    Default Re: Home Page META tags

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

    Quote Originally Posted by kobra View Post
    In a copy of your /includes/languages/english/meta_tags.php file find this section to fill in:
    Code:
    // 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
    Code:
    // 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
    Code:
    // 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?

 

 

Similar Threads

  1. Home Page title meta tags
    By righttoo in forum General Questions
    Replies: 1
    Last Post: 16 Jun 2010, 04:28 PM
  2. Titles and Meta tags on home page
    By greytail in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Mar 2010, 04:38 PM
  3. Edit Meta Tags for home page
    By lewisfive1 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 21 Jun 2008, 05:14 PM
  4. Meta tags - home page
    By pb4 in forum Basic Configuration
    Replies: 11
    Last Post: 7 Mar 2008, 04:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg