Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding text to the header logo?


Guest

Recommended Posts

Posted

I am wanting to add text next to my header image. I don't see anywhere I can add this now. Do I have to add coding myself into a file? In header.php?

Posted

in /catalog/includes/header.php find this line of code:

 

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

 

Add the text you want just before the closing </td> tag.

Posted
in /catalog/includes/header.php find this line of code:

 

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

 

Add the text you want just before the closing </td> tag.

ok got that....now, how do I center the text, and change it's size?

Posted

if you don't want the text right next to the logo and want to center it then try adding another cell in and playing around with the widths of the cells in that row. So after this:

 

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

 

add another cell:

 

<td>some text</td>

 

you can insert width values into each <td> like so:

 

<td width="200">

Posted
if you don't want the text right next to the logo and want to center it then try adding another cell in and playing around with the widths of the cells in that row. So after this:

 

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

 

add another cell:

 

<td>some text</td>

 

you can insert width values into each <td> like so:

 

<td width="200">

 

You could also split you graphic into pieces and load each part seperately into the page. This allows you to place your text easily by sight rather that trial and error.

Hand made jewellery and tiaras on our website

 

Please bear with me. Im an osC noobie!

Posted

You know you could also replace the Oscommerce gif with your own logo (.jpg) done in Photoshop, thats what I did and it came out perfect. Just replace 'oscommerce.gif' with 'yourlogo.jpg' and ftp your image to your online "images" dir.

Archived

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

×
×
  • Create New...