Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add header using html file not a image?


aboyz

Recommended Posts

Ok.. I know how to add a image on the header..

 

but how do i add link to the pictures?

 

some how i need make a html file with the image in there. and then add the hot links to the header..

 

I know how to add an image on the header..

 

but how do i add a html file in there

 

here is what i got so far..

 

Open catalog/includes/header.php and find this code around line 59

 

Code:

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'logo.gif', 'ReddySolutions.com') . '</a>'; ?></td>

<td align="right" valign="bottom"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_account.gif', HEADER_TITLE_MY_ACCOUNT) . '</a>  <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'header_cart.gif', HEADER_TITLE_CART_CONTENTS) . '</a>  <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'header_checkout.gif', HEADER_TITLE_CHECKOUT) . '</a>'; ?>  </td>

</tr>

</table>

 

 

change to.........

 

Code:

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'header.gif', 'header.com') . '</a>'; ?></td>

</tr>

</table>

 

 

Now. how do i add a html file into the header... with the images in there?

 

thanks

Link to comment
Share on other sites

osc doesn't care what is in the file, just as long as it has a header.php.

 

write yer html and rename it header.php and make sure it is in the proper dir and yer good to go.

 

If you want the osc links...just cut and paste...but make sure they are complete.

Link to comment
Share on other sites

I don't get it..

 

did you see the code i put in . I can add an image into the header.php

 

but i was wondering if i can add a .html file into header.php.. and how would i do that??

Link to comment
Share on other sites

Hi

 

can someone give me an example of what to add in the header.php

 

How do i add a html file into my header.php

 

can someone show me an example of what to add? because i posted how to add an image.. but i want to add a html with that image in it and some link.. so how do i add a html file into header.php

 

thanks

Link to comment
Share on other sites

just write yer html as you would do normally...just name the file header.php.

 

I use fireworks sometimes and just rename the html file and that's that.

Link to comment
Share on other sites

<font face="Verdana, Arial, Helvetica, sans-serif" size="2">Blah blah blah</font> <img src="images/Climber.jpg">

<table width="100%" border="1">

<tr>

<td width="57%"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Blah

blah blah<br>

or put me in a table</font> </td>

<td width="43%">

<div align="center"><img src="images/Climber.jpg"></div>

</td>

</tr>

</table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'header.gif', 'header.com') . '</a>'; ?></td>

</tr>

</table>

 

<h2 align="center"><font face="Arial, Helvetica, sans-serif">Just make sure to

name me header.php</font></h2>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...