Trout69 Posted January 15, 2006 Posted January 15, 2006 Hello All, I've had a search and can't seem to find this anywhere so your help would be appreciated? I am creating a dual branded site and would like to display 2 logo's. One logo is fine on the left hand side (replacing the oscommerce logo), the other i want to position similarly but on the right hand side. Im sure one of you coding expert out there will be able to help. If you can post the code i need to insert i would be most appreciative. Best Regards Donna
tina_boots Posted January 15, 2006 Posted January 15, 2006 Hello All, I've had a search and can't seem to find this anywhere so your help would be appreciated? I am creating a dual branded site and would like to display 2 logo's. One logo is fine on the left hand side (replacing the oscommerce logo), the other i want to position similarly but on the right hand side. Im sure one of you coding expert out there will be able to help. If you can post the code i need to insert i would be most appreciative. Best Regards Donna Find this code in your includes/header.php file at around line 55: <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 . 'oscommerce.gif', 'osCommerce') . '</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> A basic idea might be to modify that code to something like this: <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 . 'mylogo1.gif', 'myshop1') . '</a>'; ?></td> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'mylogo2.gif', 'myshop2') . '</a>'; ?></td> </tr> </table> You will not be able to do a cut and paste with this, rather this is just to demonstrate the direction to start working. Many different factors such as size of images, background, etc will come into play. You'll likely do some experimenting until you get it right. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
Trout69 Posted January 15, 2006 Author Posted January 15, 2006 Thanks Tina, Worked a treat!!! Both logo's showing fantastically. Just a small thing tho, is there anyway to right align logo 2, the first logo is perfectly positioned on the left, the second logo isn't, and seems to be nearer the middle. Any ideas would be greatly appreciated. Thanks Donna
tina_boots Posted January 15, 2006 Posted January 15, 2006 Thanks Tina, Worked a treat!!! Both logo's showing fantastically. Just a small thing tho, is there anyway to right align logo 2, the first logo is perfectly positioned on the left, the second logo isn't, and seems to be nearer the middle. Any ideas would be greatly appreciated. Thanks Donna That is where the experimenting comes in. Try adjusting it with the align parameter on the TD tag for the second image such as align="center". That should not to be confused with valign which adjusts the up and down display. Be well, Tina If you're not having fun you're not doing it right Teach a person to fish rather than give them a loaf of bread or however that saying goes.
Trout69 Posted January 15, 2006 Author Posted January 15, 2006 That is where the experimenting comes in. Try adjusting it with the align parameter on the TD tag for the second image such as align="center". That should not to be confused with valign which adjusts the up and down display. Be well, Tina Thanks Tina, not very good at this whole coding thing, played around with it tho and got it pretty much how i wanted it now. Thanks for all your help. Donna
Guest Posted January 16, 2006 Posted January 16, 2006 Thanks Tina, not very good at this whole coding thing, played around with it tho and got it pretty much how i wanted it now. Thanks for all your help. Donna HI Donna...I've got more or less the same problem. I need to put in a rotator or something in the right or middle position. I currently have a rotator for Categories on the left, but it israndom an I wnat to link things tightly tothe Category and product being viewed. This is important for me because different Categories have their own native (1st) language that viewers get first (although they can change them, of course). >>>Could you please post the code you finally used (or PM me, as you wish, please)??? Super thanks... I have to link one image to a product being displayed and the other to the Category currenty being viewed. It would save me countless eons of time to have your headstart with gracious Tina's patient help, please, as me too: I'm "not very good at this whole coding thing" ??? Many Many Thanks, Ladies! Charles
Trout69 Posted January 16, 2006 Author Posted January 16, 2006 HI Donna...I've got more or less the same problem. I need to put in a rotator or something in the right or middle position. I currently have a rotator for Categories on the left, but it israndom an I wnat to link things tightly tothe Category and product being viewed. This is important for me because different Categories have their own native (1st) language that viewers get first (although they can change them, of course).>>>Could you please post the code you finally used (or PM me, as you wish, please)??? Super thanks... I have to link one image to a product being displayed and the other to the Category currenty being viewed. It would save me countless eons of time to have your headstart with gracious Tina's patient help, please, as me too: I'm "not very good at this whole coding thing" ??? Many Many Thanks, Ladies! Charles Hi There sorry about the delay in replying, after hours on the comp yest i thought i best give my eyes a rest, the code i finally used is below: <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 . 'yourlogo1.jpg', 'yourdomain.com') .'</a>'; ?></td> <td valign="middle"><td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'yourlogo2.jpg', 'yourdomain.com') . '</a>'; ?></td> </tr> </table> Hop this helps. Cheers Donna
Guest Posted January 18, 2006 Posted January 18, 2006 Hi There, Donna... You are so nice to me...Thank you Donna! (and Tina!) I have been up to my ears in SSL (got it fixed!)...{my eyes, too!} THIS looks wonderful and a Great Great Help + Big Headstart! THANK*YOU*BOTH*FOR*ALL*THE*HELP! Have a Wonderful & Successful Day, wherever you are...! All the best, Charles :rolleyes:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.