It feels like I need to end a /div I have tried after the end of the logo div, but it just either throws it out of line or it ends up floating on the left?
Printable View
Open includes/templates/cold_steel/common/tpl_header.php
replace the entire contents with the following:
PHP Code:
<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 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: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
*/
?>
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="headerWrapper">
<!--bof-branding display-->
<div id="logoWrapper">
<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<div class="date"><?php echo strftime(DATE_FORMAT_LONG);?></div>
<div id="logo"><?php echo zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT);?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<!--bof-navigation display-->
<div id="navMainWrapper">
<ul id="navMain">
<li<?php echo (($this_is_home_page) ? ' class="current">' : '>');?><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo '<span>' . HEADER_TITLE_CATALOG . '</span>'; ?></a></li>
<?php if ($_SESSION['customer_id']) { ?>
<li<?php echo (($current_page_base == 'logoff') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGOFF . '</span>'; ?></a></li>
<?php
} else {
if (STORE_STATUS == '0') {
?>
<li<?php echo (($current_page_base == 'login') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_LOGIN . '</span>'; ?></a></li>
<?php } } ?>
<li<?php echo (($current_page_base == 'contact_us') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'SSL'); ?>"><?php echo '<span>' . BOX_INFORMATION_CONTACT . '</span>'; ?></a></li>
<li<?php echo (($current_page_base == 'account') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_MY_ACCOUNT . '</span>'; ?></a></li>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<li<?php echo ((in_array($current_page_base,explode(",",'checkout_shipping,checkout_payment,checkout_confirmation,checkout_success'))) ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CHECKOUT . '</span>'; ?></a></li>
<?php }?>
<li<?php echo (($current_page_base == 'shopping_cart') ? ' class="current">' : '>');?><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo '<span>' . HEADER_TITLE_CART_CONTENTS . '</span>'; ?></a></li>
</ul>
</div>
<!--eof-navigation display-->
</div>
<!--<br class="clearBoth" />-->
<!--eof-branding display-->
<!--eof-header logo and navigation display-->
<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
<?php } ?>
Hmm, now the links are over to the left hand side. (see picture)
I'm going to go back to the old links for a while and test on a different website. Thanks for your help! I'll let you know if I find a solution.
http://www.environmentalposters.co.uk/screenshot.jpg
I am running the latest version of Zen-Cart (1.3.8). I am just setting up Cold Steel. I have 3 questions and could not find the answers in the forum.
1. What file and location can I edit for the main page where it says "Welcome Guest".
2. I want to delete the grey in the header on all pages and just have it white. (What files and locations)
3. In the Information box that has contact us, news letter, site map etc. I would like to reduce what is listed. Example delete "Discount Coupons" (What needs editing to do that)
Thank you in advance for your help....
1 - includes/languages/english/cold_steel/index.php
2 - includes/templates/cold_steel/css/stylesheet.css
find the following declaration and delete the highlighted portion
#logoWrapper{
margin:0;
background: url(../images/header_bg.gif) no-repeat;
height:112px;
width:917px;
position: relative;
top:0;
left:0;
}
3 - admin -> configuration -> Define Page Status -> Define Discount Coupon (set to 3)
Thank you for the fast response
In #1 I did not see how to delete the ticks or check marks
In #3 How do I delete "Gift Certs" and "News letters"
1 - if you scroll to the bottom of the "introducing cold steel template"
You will see the following:
Quote:
This content is located in the file at: /languages/english/html_includes/cold_steel/define_main_page.php
You can quickly edit this content via Admin-> Tools-> Define Pages Editor, and select define_main_page from the pulldown. You can also edit it directly if you prefer.
NOTE: Always backup the files in /languages/english/html_includes/your_template
3 -
admin -> configuration -> E-Mail Options -> Display "Newsletter Unsubscribe" Link? (set to false)
admin -> modules -> Order Total -> Gift Certificates (click the "remove" button)
Before I start Thank You for all your help
1. In the footer where it is divided into two sections (the one on the left has company name and address and the one on the right has the home button). Can I make it one bar going across that is thin. (One letter height)? In addition can the bottom "Copywrite etc" also be centered?
2. When you are on the home page using IE the task bar says "Zen Cart" can you make it say something else?
1 - open includes/templates/cold_steel/common/tpl_footer.php
make whatever edits you want.
You will also need to make adjustments in includes/templates/cold_steel/css/stylesheet.css.
2- open includes/languages/english/meta_tags.php
Make your edits and then save the edited file to includes/languages/english/cold_steel/meta_tags/php
When filling in new account information I would like to delete people from having to enter DOB and news letters. Where to?
Also can I delete "Write a review" on the product page