Forums / Templates, Stylesheets, Page Layout / <title> my website title !!</title>

<title> my website title !!</title>

Locked

Views: 5,235

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
24 Nov 2007, 9:56 PM
#1
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

<title> my website title !!</title>

Can any body tell me where to set the title name for my home page and other pages !?

24 Nov 2007, 10:37 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: <title> my website title !!</title>

To find the file where any text is defined, look in admin > Tools > Developers Toolkit. Paste a distinctive snippet of the text in the upper left box, select all main language files and search.

Use this with the current text to find where to change it.

25 Nov 2007, 4:35 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: <title> my website title !!</title>

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Dec 2007, 8:59 AM
#4
roblw avatar

roblw

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: <title> my website title !!</title>

I've edited the meta_tags.php with -

define('TITLE', 'my_website_name');

And all of my product pages work fine with the new title displayed in the web browers... except the Main Page (index) still shows - HOME_PAGE_TITLE

I can't find any other reference for changing this. Can anyone help.
By the way, I'm using version. 1.3.8

12 Dec 2007, 9:11 AM
#5
sentience avatar

sentience

New Zenner

Join Date:
Dec 2007
Posts:
13
Plugin Contributions:
0

Re: <title> my website title !!</title>

Im having the same problem. The solution in the FAQ requires you to know how to program or edit files in your own program then upload them to the server. I have absolutely no idea how to do any of that, so that advice isnt helpful to me.

I am looking for a way to change my website title from the admin section. There really should be an easier way to do this for non programmers like me.

Same with the tag line. My template has already been built by my programmer but he didnt do the tagline or set the name for the main page. Im having a difficult time trying to figure this out on my own.

I wrote about it here: http://www.zen-cart.com/forum/showthread.php?t=82717

12 Dec 2007, 3:17 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: <title> my website title !!</title>

roblw:

I've edited the meta_tags.php with -

define('TITLE', 'my_website_name');

And all of my product pages work fine with the new title displayed in the web browers... except the Main Page (index) still shows - HOME_PAGE_TITLE

I can't find any other reference for changing this. Can anyone help.
By the way, I'm using version. 1.3.8

If you're using v1.3.8 and you don't have a spot to define HOME_PAGE_TITLE, then you've not done a thorough upgrade, or you're using files built for an older template.

The top part of the meta_tags.php language file in v1.3.8 includes these pieces. If yours is missing any or all of them, you need to upgrade the file using the original from v1.3.8 (or whatever version you're running). The following IS NOT the complete file. It's only a reference to show you that you're missing things:```
// 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('[B]HOME_PAGE_TITLE[/B]', ''); // usually best left blank

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Dec 2007, 8:23 PM
#7
roblw avatar

roblw

New Zenner

Join Date:
Jun 2007
Posts:
4
Plugin Contributions:
0

Re: <title> my website title !!</title>

Thanks so much! Yes, that did it.

When upgrading I kept my 'custom' files as they were from the previous version. I haven't noticed any other problems though, but was wondering if there is a list anywhere that shows the 'include' files that were changed with this newer version? Thanks again!

12 Dec 2007, 8:26 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: <title> my website title !!</title>

roblw:

Thanks so much! Yes, that did it.

When upgrading I kept my 'custom' files as they were from the previous version. I haven't noticed any other problems though, but was wondering if there is a list anywhere that shows the 'include' files that were changed with this newer version? Thanks again!

Yes -- there's a lot of information in the /docs/ folder, including a list of all the new features/fixes and the list of changed files.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Mar 2009, 4:21 PM
#9
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: <title> my website title !!</title>

Hi
I can see that this is a old post but am having similar issues. I have tried to amend the home page title,description and meta keywords by altering the :
/HTDOCS/includes/languages/english/MY_TEMPLATE/meta_tags.php

The keywords and description have all worked fine but when i alter the title and save the changes the website will not load. So I have taken the title out saved it over and hit refresh on the site. The site loads fine without any page title. When you view the source you can see that the keywords and description have been altered. However if i try to put anything between the title tag the website will not load.

Here is the meta_tags.php file. i have deleted the page title. If you would like to view the page source then please go to ravsappliances.com```

<?php /** * @package languageDefines * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0 * @version $Id: meta_tags.php 6668 2007-08-16 10:05:09Z drbyte $ */ // page title define('TITLE', ''); // Site Tagline define('SITE_TAGLINE', ''); // Custom Keywords define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping'); // Home Page Only: define('HOME_PAGE_META_DESCRIPTION', 'Ravs Appliances bringing you quality 4 less.Shop online for Digital TVs, HDTV, dvd players, microwaves and home appliances discounted prices'); define('HOME_PAGE_META_KEYWORDS', 'sanyo, microwave, appliances, lcd, Hitachi lcd tv, sale, electricals, lcd , plasma, hitachi camcorder, digital camcorder, hitachi dvd recorder,television, microwave oven, microwave grill, 32'); // 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', ''); // 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,info_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_check'); // favicon setting // There is usually NO need to enable this unless you need to specify a path and/or a different filename // define('FAVICON','favicon.ico'); ?>
thanks
7 Mar 2009, 5:11 PM
#10
abs007 avatar

abs007

Zen Follower

Join Date:
Mar 2009
Location:
Peterborough UK
Posts:
330
Plugin Contributions:
0

Re: <title> my website title !!</title>

Update
After fiddling around with the home page title

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

I have managed to load the page with Ravs Appliances in the title. If i try to add any more characters the page will not show.

Its a little strange

7 Mar 2009, 7:57 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: <title> my website title !!</title>

define('HOME_PAGE_TITLE', 'Ravs Appliances');

I bet you tried to use 'Rav's Appliances' in the define.
You can't include a bare single quote in a single-quoted text string, because the code will read it as ending the string. Escape the ' with a backslash:
'

define('HOME_PAGE_TITLE', 'Rav's Appliances');