osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Changing Background Color of Header

This is a discussion on Changing Background Color of Header within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; A newbie question. I'm trying to change the background color of my header only. I've been trying to place the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-08-2005, 09:40 AM
Lurker
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
knowgangs
Default Changing Background Color of Header

A newbie question. I'm trying to change the background color of my header only. I've been trying to place the code into the main_page.tpl.php file, but have not been able to locate the right spot to put the code.

My website is www.knowgangs.com/store

Any suggestions as to where I put the code?

Code:
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>
<head><center>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<?php require(DIR_WS_INCLUDES . 'meta_tags.php'); ?>
<title><?php echo META_TAG_TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" />
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" />
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<?php if ($javascript) { require(DIR_WS_JAVASCRIPT . $javascript); } ?>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- warnings //-->
<?php require(DIR_WS_INCLUDES . 'warnings.php'); ?>
<!-- warning_eof //-->

<!-- header //-->


<table class="maintable" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
   <td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr><BODY BGCOLOR="#663333">
   <td><center><table border="0" cellpadding="0" cellspacing="0" width="750">
	  <tr>
	   <td><center><?php echo tep_image(DIR_WS_IMAGES . 'header_r1_c1.gif', ''); ?></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r1_c2.gif', ''); ?></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r1_c19.gif', ''); ?></td>
	  </tr>
	</table></center></td>
  </tr>
  <tr>
   <td><center><table border="0" cellpadding="0" cellspacing="0" width="750">
	  <tr>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r2_c1.gif', ''); ?></td>
	   <td><table border="0" cellpadding="0" cellspacing="0" width="400">
		  <tr>
		   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r2_c4.gif', ''); ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r3_c4.gif', ''); ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r4_c4.gif', ''); ?></td>
		  </tr>
		</table></center></td>
	   <td><center><table border="0" cellpadding="0" cellspacing="0" width="333">
		  <tr>
		   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r2_c12.gif', ''); ?></td>
		  </tr>
<tr><td><center><EMBED SRC="/store/images/knowgangstitle12.swf" TARGET=_self WIDTH=333 HEIGHT=38"></center></embed></tr></td>
		  <tr>
		   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r4_c12.gif', ''); ?></td>
		  </tr>
		</table></center></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
   <td><center><table border="0" cellpadding="0" cellspacing="0" width="750">
	  <tr>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c1.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c3.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c5.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH, '', 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c6.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c7.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_SPECIALS, '', 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c8.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c9.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c10.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c11.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c13.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c14.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c15.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c16.gif', ''); ?></td>
	   <td><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c17.gif', ''); ?></a></td>
	   <td><?php echo tep_image(DIR_WS_IMAGES . 'header_r5_c18.gif', ''); ?></td>
	  </tr>
	</table></center></td>
  </tr>
  <tr>
   <td width="100%" height="17" class="headerNavigation">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="headerNavigation">   <?php echo $breadcrumb->trail(' » '); ?></td>
    <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a>  |  <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
  </tr>
</table>
   </td>
  </tr>
  <tr>
   <td><center><?php echo tep_image(DIR_WS_IMAGES . 'header_r7_c1.gif', ''); ?></center></td>
  </tr>
</table>

<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- content //-->
    <td width="100%" valign="top">
<?php
  if (isset($content_template)) {
    require(DIR_WS_CONTENT . $content_template);
  } else {
    require(DIR_WS_CONTENT . $content . '.tpl.php');
  }
?>
    </td>
<!-- content_eof //-->
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'counter.php'); ?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
  <tr class="footer">
    <td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
    <td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
  </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" class="smallText">
<?php
/*
  The following copyright announcement can only be
  appropriately modified or removed if the layout of
  the site theme has been modified to distinguish
  itself from the default osCommerce-copyrighted
  theme.

  For more information please read the following
  Frequently Asked Questions entry on the osCommerce
  support site:

  http://www.oscommerce.com/community.php/faq,26/q,50

  Please leave this comment intact together with the
  following copyright announcement.
*/

  echo FOOTER_TEXT_BODY
?>
    </td>
  </tr>
</table>
<?php
  if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><?php echo tep_display_banner('static', $banner); ?></td>
  </tr>
</table>
<?php
  }
?>
<!-- footer_eof //-->
<br>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-09-2005, 07:08 AM
Active Member
 
Join Date: May 2004
Location: somewhere above colchester uk
Posts: 147
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
battleaxe
Default RE: Changing Background Color of Header

Hi

You need to change the stylesheet code (style.css). If you look in the guide, you will find all the common stlesheet code that people need to change in order to personalise their store. It is here... http://oscdox.com/phpWiki.html
__________________
Google says be nice!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-12-2005, 11:32 AM
Lurker
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
knowgangs
Default RE: Changing Background Color of Header

Thanks so much for replying. I searched through the stylesheet code and found how to modify many areas of the frontpage. I also read the info in the link you provided, but I am still having trouble finding where in the .ccs file to change the background color of the header only. I Learned how to change everything else, but can't find how to change the main header background color only.

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Changing Background color tclhost osCMax v2 Customization/Mods 2 11-05-2005 01:00 PM
Subcategory Background Color cathelle osCommerce 2.2 Modification Help 3 08-03-2005 08:10 AM
where can I change the background color? chenzhu osCMax v2 Customization/Mods 1 06-30-2005 05:08 PM
Different background color for each category?? surfer osCMax v1.7 Discussion 1 12-04-2004 08:14 PM
Help needed changing link color in info box header 13Moons osCommerce 2.2 Modification Help 1 03-04-2004 01:12 AM


All times are GMT -8. The time now is 01:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax