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">&nbsp;&nbsp;&nbsp;<?php echo $breadcrumb->trail(' &raquo; '); ?></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> &nbsp;|&nbsp; <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> &nbsp;|&nbsp; <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> &nbsp;&nbsp;</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">&nbsp;&nbsp;<?php echo strftime(DATE_FORMAT_LONG); ?>&nbsp;&nbsp;</td> <td align="right" class="footer">&nbsp;&nbsp;<?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>&nbsp;&nbsp;</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>




LinkBack URL
About LinkBacks






Bookmarks