Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can't update title and tagline with meta_tags.php

Can't update title and tagline with meta_tags.php

Locked

Views: 2,093

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
23 Feb 2009, 5:21 PM
#1
naturalenquirer avatar

naturalenquirer

New Zenner

Join Date:
Jan 2009
Posts:
16
Plugin Contributions:
0

Can't update title and tagline with meta_tags.php

Following tutorial instructions, I modified the meta_tags.php file to change the browser title and tagline. I copied the modified file into /includes/languages/english/nif. (nif is name of my template). When I load the page, instead of new tagline and title, I see HOME_PAGE_TITLE on home page. Another example on another page shows PrintsPRIMARY_SECTIONTITLETERTIARY_SECTIONSITE_TAGLINE

I just don't see what I'm doing wrong here. I've cleared my browser cache also. I've made no other changes to this file at all. Only other modifications I've made so far is adding the Google Checkout module.

I've included the code below that's in the modified file. The template I'm using is Darkness in case there is an issue with that template.

Have I made an obvious mistake that I'm just not seeing? I'e bolded the changes I made.

Thanks.

<?php /** * @package languageDefines * @copyright Copyright 2003-2007 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 6668 2007-08-16 10:05:09Z drbyte $ */ // **page title define('TITLE', 'Nature In Focus'); // Site Tagline define('SITE_TAGLINE', 'PhotoNaturalist Bill Boothe has prints and stock images available for purchase through his business Natural Encounters'); ** // 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 // 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'); ?>
23 Feb 2009, 7:09 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Can't update title and tagline with meta_tags.php

/includes/languages/english/nif or darkness???
Learn to use the "code" # box...

Where is your site???

23 Feb 2009, 7:13 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't update title and tagline with meta_tags.php

There is a good chance that your TEXT Editor is not working well and has wrapped all of the lines ...

Start with a clean file and be sure to use a good TEXT Editor like NotePad or UltraEdit ... not things like MS Word or your Control Panel of your website ...

Each of those defines in the php file should be on its own line and it looks like your file is perhaps all wrapped into one paragraph ... :unsure:

23 Feb 2009, 8:30 PM
#4
naturalenquirer avatar

naturalenquirer

New Zenner

Join Date:
Jan 2009
Posts:
16
Plugin Contributions:
0

Re: Can't update title and tagline with meta_tags.php

Test site is at http://natureinfocus.com/products.

I did use plain text editor but will double check to make sure about line breaks etc.

23 Feb 2009, 8:35 PM
#5
kobra avatar

kobra

Black Belt

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

Re: Can't update title and tagline with meta_tags.php

Also, check that the file version you are editing is a copy from your current Zen Cart version as the one that might be included with this template could be outdated...

/includes/language/english/meta_tags.php

Make a copy - edit - and upload

23 Feb 2009, 8:40 PM
#6
naturalenquirer avatar

naturalenquirer

New Zenner

Join Date:
Jan 2009
Posts:
16
Plugin Contributions:
0

Re: Can't update title and tagline with meta_tags.php

Thanks Linda. Even though I used Notepad, somehow some of the lines were wrapped - simple solution. Just couldn't see the obvious after looking at it too long!

23 Feb 2009, 8:52 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Can't update title and tagline with meta_tags.php

Thanks for the update that your file got all wrapped up and turned into a mess with NotePad ... :eek:

Be sure that the WordWrap is turned off when using it on php files ... :smile:

23 Feb 2009, 11:24 PM
#8
drbyte avatar

drbyte

Sensei

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

Re: Can't update title and tagline with meta_tags.php

Notepad++ is much more friendly and safe than regular Notepad, and it's free: http://notepad-plus.sf.net