Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1

    Default Just Upgraded- can't edit home page title in browser bar

    Hi all :)

    I recently upgraded from 1.37 to 1.38a at http://www.crochetgarden.com

    I finally got everything done.. and I noticed on my home page in browser it says HOME_PAGE_TITLE

    I went into the developers tool kit, and it directed me to includes/languages/english/meta_tags.php

    However, I am using the file located in my CUSTOM folder at:
    includes/languages/english/CUSTOM/meta_tags.php

    So, I am wondering, how do I change / fix this? I am unsure how to edit the CUSTOM meta_tags.php file to have it reflect the proper home page title. And, incidentally, this is the only page doing this.. all the other pages are using the meta_tags.php file in my CUSTOM folder.

    I apologize if this has been asked before!

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: Just Upgraded- can't edit home page title in browser bar

    What you are seeing is the actual title of the database variable that may have bad data or be blank. Either will work BUT, sometimes when we edit those entries we don't keep a close eye on the '. When you define a variable, it must have a single quote at the beginning and end of the define.
    Go to the english.php in your Custom and look for HOME_PAGE_TITLE. You'll probably find ' versus '' at the end of the define. Add the second ' if you want it to be blank or, better yet, add the 'name of your site' and it should work.

  3. #3

    Default Re: Just Upgraded- can't edit home page title in browser bar

    Hmm, thank you. I looked in the includes/languages/CUSTOM/english.php and see nothing in regards to HOME_PAGE_TITLE

    I will keep looking. Nothing came up on the developer's tool kit either except the meta_tags.php file, which is over-ridden by the CUSTOM/meta_tags.php..

    Let me know if I was looking at the wrong file?

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: Just Upgraded- can't edit home page title in browser bar


    I zigged when I should have zagged. Should have said -- in the languages/english/custom/meta_tags.php. If the title is blank, you may have a problem with TITLE or SITE_TAGLINE ( see note around line 23)

  5. #5

    Default Re: Just Upgraded- can't edit home page title in browser bar

    Here is what it is in my meta_tags file in the custom folder.. (I am baffled)

    Code:
    <?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', 'Crochet Garden!');
    
    // Site Tagline
    define('SITE_TAGLINE', 'Boutique Quality Patterns');
    
    // 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,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');
    
    ?>

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: Just Upgraded- can't edit home page title in browser bar

    old file.
    What version of Zen?

  7. #7

    Default Re: Just Upgraded- can't edit home page title in browser bar

    aha! I figured it out :) (To answer your question, I was using 1.37 and upgraded to 1.37a)

    I took this line of code from the file includes/languages/english/meta_tags.php

    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', 'Crochet Garden - Boutique Quality Patterns!'); // usually best left blank
    and inserted it into the includes/languages/english/CUSTOM/meta_tags.php file! Maybe this will help someone else!

    thank you for your help!! :)

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

    Default Re: Just Upgraded- can't edit home page title in browser bar

    You have an old meta_tags.php. Add this block of code between "// Custom Keywords" and "// Review Page can have a lead 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
    
    
    // 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', '');
    Edit:

    Or edit the new version of meta_tags.php to reflect your website information and upload it.

    This is the version info from the latest meta_tags.php:
    Code:
    /**
     * @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 $
     */
    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

    Default Re: Just Upgraded- can't edit home page title in browser bar

    Thank you Afo! I will add that all in... I guess I took a "quickie" fix? :)

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

    Default Re: Just Upgraded- can't edit home page title in browser bar

    If you have something like WinMerge, you can compare the contents of the file and make the necessary updates.
    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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Browser Bar Title Won't Change
    By annav in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Apr 2015, 04:42 PM
  2. browser bar title
    By cindycj in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jan 2009, 02:01 AM
  3. Changing text in Browser Title Bar
    By kysonedin in forum General Questions
    Replies: 2
    Last Post: 26 May 2006, 10:02 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR