Thread: Home_page_title

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Home_page_title

    Ok, i have tried several things but apparently all wrong :) The tab that shows up when I go to my zen cart is HOME_PAGE_TITLE. I want it to read MoonCave Crystals. I have tried two different meta_tag.php files, neither of which apparently were correct. I used the developers tools to find the correct file, but there were so many, I got even more confused. So.........can anyone tell me the correct file to go to in order that I may change HOME_PAGE_TITLE to MoonCave Crystals?

    Thanks!

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Home_page_title

    In includes/languages/english/YOUR_TEMPLATE/meta_tags.php, look for the block of code below.

    Code:
    // 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');
    
    // 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
    and change it to

    Code:
    // page title
    define('TITLE', MoonCave Crystals');
    
    // Site Tagline
    define('SITE_TAGLINE', 'The Art of E-commerce');
    
    // Custom Keywords
    define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');
    
    // 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
    If you REALLY want to change the HOME_PAGE_TITLE, put MoonCave Crystals between the single quotes like

    Code:
      // NOTE: If HOME_PAGE_TITLE is left blank (default) then TITLE and SITE_TAGLINE will be used instead.
      define('HOME_PAGE_TITLE', 'MoonCave Crystals '); // usually best left blank
    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

  3. #3
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: Home_page_title

    Thanks :) This is wierd, or I am just not doing it right. I went to the file as instructed and changed as instructed. Nothing. I looked at every meta_tag.php file in the joint. The darkness template I am using did not have any of that code.

    I think the only one I did not change was the template that came with zen. Color me frustrated.

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Home_page_title

    You only need to change ONE meta_tags.php file - the one that your template is using. You can change all the other meta_tags.php files, but Zen Cart isn't reading those, so they won't make a bit of difference.

    If that code isn't in that file, then the file is outdated. Look in includes/languages/YOUR_TEMPLATE/english.php
    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

  5. #5
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: Home_page_title

    This is what I have in includes/languages/english/darkness (that is the template I am using)/meta tag.php (SEE BELOW) As you can see I changed the title but that didnt work :) So.....if this is all wrong, should I just delete and copy the code from includes/languages/english/meta tag.php???

    <?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', 'MoonCave Crystals');

    // Site Tagline
    define('SITE_TAGLINE', '');

    // Custom Keywords
    define('CUSTOM_KEYWORDS', 'pebbles, tumbles, crystal, crystals, incense, lemurians, lemurian, smudges, quartz, moonstone, peridot, carnelian, citrine, rock, rocks, garnet, lithium, beta, coral, angelite, celestine');

    // 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');

    ?>

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Home_page_title

    It looks right to me.
    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

  7. #7
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: Home_page_title

    then i am confused....what i posted looks nothing like what you posted. And if it looks right, it doesnt work because I am still getting HOME_PAGE_TITLE on my browsing tab. Oh well, guess I will just have to leave as is.....sucks, but all i know how to do.

  8. #8
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Home_page_title

    You posted

    Code:
    // page title
    define('TITLE', 'MoonCave Crystals');
    
    // Site Tagline
    define('SITE_TAGLINE', '');
    
    // Custom Keywords
    define('CUSTOM_KEYWORDS', 'pebbles, tumbles, crystal, crystals, incense, lemurians, lemurian, smudges, quartz, moonstone, peridot, carnelian, citrine, rock, rocks, garnet, lithium, beta, coral, angelite, celestine');
    I posted
    Code:
    // 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');
    Those blocks of code don't look similar to you?

    Add this under your keyword definition and see if that helps:

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

  9. #9
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: Home_page_title

    Ok, will try that, thanks. I have been at this all day and am frustrated at my lack of knowledge...:)

    Thanks again:)

  10. #10
    Join Date
    Sep 2006
    Posts
    449
    Plugin Contributions
    0

    Default Re: Home_page_title

    Thank you. After a good nights sleep, some hot coffee and a fresh and clear mind, I was able to add the lines of code you suggested to my existing meta_tag.php file and it now works perfectly :)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a tabs HOME_PAGE_TITLE ?
    By divekathster in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jan 2012, 02:27 AM
  2. HOME_PAGE_TITLE header
    By rxalex in forum Basic Configuration
    Replies: 12
    Last Post: 14 Mar 2009, 03:42 PM
  3. Home_page_title
    By ckosloff in forum Upgrading from 1.3.x to 1.3.9
    Replies: 14
    Last Post: 16 Jul 2008, 07:43 PM
  4. Home_page_title
    By tarynhipp in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 10 May 2008, 08:42 PM
  5. Home_page_title
    By petek in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Feb 2008, 04:38 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