Guest Posted March 22, 2006 Posted March 22, 2006 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?
jasonabc Posted March 22, 2006 Posted March 22, 2006 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. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Guest Posted March 22, 2006 Posted March 22, 2006 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?
jasonabc Posted March 22, 2006 Posted March 22, 2006 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"> Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
toptiara Posted March 23, 2006 Posted March 23, 2006 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!
photojen Posted March 23, 2006 Posted March 23, 2006 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.