Zen Cart Logo
Forums / General Questions / Home_page_title

Home_page_title

Locked

Views: 4,182

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
18 Apr 2008, 7:37 PM
#1
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

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!

18 Apr 2008, 7:43 PM
#2
afo avatar

afo

Totally Zenned

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

Re: Home_page_title

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

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

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

  // 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
18 Apr 2008, 9:19 PM
#3
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

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. :censored:

19 Apr 2008, 4:14 AM
#4
afo avatar

afo

Totally Zenned

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

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

19 Apr 2008, 2:24 PM
#5
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

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,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'); ?>
20 Apr 2008, 3:29 AM
#6
afo avatar

afo

Totally Zenned

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

Re: Home_page_title

It looks right to me.

20 Apr 2008, 4:09 AM
#7
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

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.

20 Apr 2008, 4:36 AM
#8
afo avatar

afo

Totally Zenned

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

Re: Home_page_title

You posted

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

// 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? :blink:

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

// 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
20 Apr 2008, 5:03 AM
#9
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

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

20 Apr 2008, 4:04 PM
#10
mooncavecrystals avatar

mooncavecrystals

Zen Follower

Join Date:
Sep 2006
Posts:
455
Plugin Contributions:
0

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 :) :clap:

20 Apr 2008, 4:09 PM
#11
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,178
Plugin Contributions:
0

Re: Home_page_title

Yes, I know how you feel with a fresh set of eyes in the morning, coffee, and breakfast...

Glad you got her working, Gjh42 has killer knowledge:smartalec:

21 Apr 2008, 4:28 AM
#12
afo avatar

afo

Totally Zenned

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

Re: Home_page_title

You might want to get a copy of WinMerge to compare the files. You have to use it on your computer (not your website), but it'll compare the contents of two files and copy info from one to the other. After that, you'll have to upload the changes to your website. Filezilla and SmartFTP are two good FTP clients.

Haredo, can I ask what Glenn (Gjh42) had to do with this thread?

21 Apr 2008, 6:02 PM
#13
ccembd avatar

ccembd

New Zenner

Join Date:
Apr 2008
Location:
Calif
Posts:
86
Plugin Contributions:
0

Re: Home_page_title

Thank you thank you thank you for this great post. After countless hours of not being able to get code right I was finally able to accomplish it with this fantastic post. :clap: And a good nights sleep and a pepsi (my coffee :blush:)

14 Sep 2008, 1:21 AM
#14
tophat avatar

tophat

New Zenner

Join Date:
Feb 2007
Location:
Oregon
Posts:
8
Plugin Contributions:
0

Re: Home_page_title

afo:

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

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

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

 
 
Finally a fix!! Thank you for your time spent with us newbies! :bigups:
 
Cindy
<http://www.tophatjewelry.com/boutique>