Results 1 to 10 of 10
  1. #1
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Need help removing the header.

    I just started customizing my store and I am having a few issues.

    First, I would like to remove the header so that the custom clickable header I put in there will move up and there is not that huge gap.

    Second, I am seeing this "PRIMARY_SECTIONTITLETERTIARY_SECTIONSITE_TAGLINE" next to my page title in the browser window. I can't find why that is there and where it is so I can delete it!.

    Can someone point me in the right direction?

    My site is http://www.lauriesscraps.com/zen/ind...or_maintenance

    Thank you!

    Laurie

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

    Default Re: Need help removing the header.

    You've incorrectly edited includes/languages/english/YOUR_TEMPLATE/meta_tags.php.

    In the meta_tags.php that comes with Zen Cart, some of those fields are defined as follows:

    Code:
    // 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', ', ');
    The correct way to remove those is to leave the portion in all capital letters (called constants) and remove the contents within the single quotes after the comma.

    For example:

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

  3. #3
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    FIRST OFF! Thank you for replying to my thread!

    Second, this is what I have. I have no idea how it is no longer separated into the lines, but something got messed up and I am not seeing where I deleted something bad.

    <?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 titledefine('TITLE', 'Laurie's Scraps Store');// Site Taglinedefine('SITE_TAGLINE', '');// Custom Keywordsdefine('CUSTOM_KEYWORDS', 'digital scrapbook kits, digital scrapbook, scrapbook, elements');// 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,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,inf o_shopping_cart,popup_image,popup_image_additional,product_reviews_write,ssl_che ck');// 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');?>

  4. #4
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    Also, what happens when I totally screw up the file? Is there somewhere I can get a backup, because I was stupid enough to not make a copy of it before I started editing it! I think I just need a copy of the meta_tags.php file, that way it would be easier for me to see everything. Right now it is all scrunched together.

  5. #5
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    Ok, now nothing is showing up on my page at all. The entire page is blank. Even though I am sure you don't care to see it, I will include the code I have. I did something wrong, and since I don't have the original coding to compare it to, I am not able to see what is wrong.

    <?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 titledefine('TITLE', 'Laurie's Scraps Store');

    // Site Taglinedefine('SITE_TAGLINE', '');

    // Custom Keywordsdefine('CUSTOM_KEYWORDS', 'digital scrapbook kits, digital

    scrapbook, scrapbook, elements');

    // 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_separators for meta tag definitions

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

    unt_history,account_history_info,account_newsletters,account_notifications,acc

    ount_password,address_book,advanced_search,advanced_search_result,checkout_suc

    cess,checkout_process,checkout_shipping,checkout_payment,checkout_confirmation

    ,cookie_usage,create_account_success,contact_us,download,download_timeout,cust

    omers_authorization,down_for_maintenance,password_forgotten,time_out,unsubscri

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

  6. #6
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    Quote Originally Posted by lauriesscraps View Post
    Also, what happens when I totally screw up the file? Is there somewhere I can get a backup, because I was stupid enough to not make a copy of it before I started editing it! I think I just need a copy of the meta_tags.php file, that way it would be easier for me to see everything. Right now it is all scrunched together.
    You can always download the zencart version that you use again and overwrite the file you messed up. There is no way to recover without backup unless your file editor saves another version when you edit. But usually one one!

  7. #7
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    Quote Originally Posted by lauriesscraps View Post
    Ok, now nothing is showing up on my page at all. The entire page is blank. Even though I am sure you don't care to see it, I will include the code I have. I did something wrong, and since I don't have the original coding to compare it to, I am not able to see what is wrong.
    Your line breaks look very weird in the forum. Is this the same when you open the file with an editor? If yes, there is a problem that the code is broken into pieces by adding this newlines.

  8. #8
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    Where do I go to download the version I have again?

  9. #9
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    By the way, I used to live in Malaysia, and I miss it a ton! It was in 1994, and I still have cravings for the roti! I just need a new copy of the file and so I can copy and paste it in there and resave it. I don't want to mess up the template I have set up in there.

  10. #10
    Join Date
    Sep 2009
    Posts
    254
    Plugin Contributions
    0

    Default Re: Need help removing the header.

    ok, i fixed it. I re-downloaded it and kept a copy of it on my hard drive. so now it is fixed. So now I will go in and try and do what was first suggested. Thank you!

 

 

Similar Threads

  1. I need some help to move the home and log in from the header please
    By Faeriescraps in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 31 May 2012, 08:41 PM
  2. need help removing days out the timer on my website??? help!!
    By mubasher in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 27 Jan 2011, 01:28 PM
  3. Accidently over wrote the classic header.php..need help to recover the original
    By imagine4134 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Aug 2010, 05:18 PM
  4. Need help on the header
    By redrob in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Feb 2009, 07:46 PM
  5. Need help removing the Buy Now Option.
    By mystic24 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Sep 2007, 08:26 AM

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