Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need help removing the header.

Need help removing the header.

Locked

Views: 1,445

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
23 Sep 2009, 9:36 PM
#1
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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/index.php?main_page=down_for_maintenance

Thank you!

Laurie

24 Sep 2009, 3:12 AM
#2
afo avatar

afo

Totally Zenned

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

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:

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

// 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', ' ');
24 Sep 2009, 3:16 AM
#3
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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,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');?>
24 Sep 2009, 4:35 AM
#4
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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.

24 Sep 2009, 4:47 AM
#5
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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');?>
24 Sep 2009, 5:07 AM
#6
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Need help removing the header.

lauriesscraps:

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!

24 Sep 2009, 5:09 AM
#7
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Need help removing the header.

lauriesscraps:

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.

24 Sep 2009, 5:10 AM
#8
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help removing the header.

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

24 Sep 2009, 5:11 AM
#9
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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.

24 Sep 2009, 5:18 AM
#10
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

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!