Guest Posted March 20, 2006 Posted March 20, 2006 Well, I thought I knew where to go to add in stuff to my header section but it's not working. Main Page See the blank blue space to the right of my site banner? I want to add in my PayPal/Credit Card logos there (and eventually the SSL logo when it's installed). I've gone everywhere the header is, including header.php and nothing ever shows up. Can someone point me in the right direction. I think I'm just having a brain fart today if anything :-"
rabbitseffort Posted March 20, 2006 Posted March 20, 2006 well, in header.php go to where your image is defined (/catalog/images/sitebanner.jpg) it is defined as 550px x 155px so add the images you want next to where that one is defined in the header--you should be able to figure it out, just make sure none of them are bigger than 155 px high "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
Guest Posted March 20, 2006 Posted March 20, 2006 Thanks for replying. I've done that and get all kinds of errors. Now I haven't done it in a few weeks (and am doing other things today for now)... Perhaps I'm just putting somethign in wrong. I want my site banner where it is and on the blank side, put PayPal/credit card logos and SSL cert logo - PayPal/credit card logo on top of the SSL cert logo. Perhaps someone can type up a mock code to give me an idea of what I need to do, please?
Guest Posted March 22, 2006 Posted March 22, 2006 Still looking for someone to supply a mock code for my question so I can add two graphic logos to the right side of my site graphic logo. I still don't have a complete handle on PHP and I've been having problems getting these things right. Thanks in advance
MrMcauber Posted March 22, 2006 Posted March 22, 2006 How about this... where you have this code (in header.php): <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle" bgcolor="#96BEF0"><a href="http://www.moonlightdelights.com/catalog/index.php?osCsid=0baba0acfd2ad12979634d78fff1c2f8"><img src="images/sitebanner.jpg" border="0" alt="Moonlight Delights.com" title=" Moonlight Delights.com " width="550" height="155"></a></td> <td align="right" valign="bottom" bgcolor="#96BEF0">??</td> </tr> </table> change it for this code: <table width="100%" height="155" border="0" cellpadding="0" cellspacing="0"> <tr class="header"> <td align="right" valign="middle" background="images/sitebanner.jpg" bgcolor="#8ABFF5" style="background-repeat: no-repeat">PayPal/Credit Card logos go here!</td> </tr> </table> (Make sure you backup first!) What this does is: Create a table with one cell in it, 100% wide and 155pixels high (same height as your logo) It then sets your logo as a non repeatable background image of that cell, i.e. it appears once to the left. The beauty of a background image is that you can place text or other images over the top by placing them inside the cell... I have made the cell "Right" justified, so anything you put into it appears to the right of your header (like the text I put in)... The only thing about this, is that in your original header your logo was a link back to your main/home page, using this method your logo cant have a link with it, but to be honest Im not sure many people would have used the logo as link back home anyway.... Solution OK? Still looking for someone to supply a mock code for my question so I can add two graphic logos to the right side of my site graphic logo. I still don't have a complete handle on PHP and I've been having problems getting these things right. Thanks in advance
MrMcauber Posted March 22, 2006 Posted March 22, 2006 That first bit of code I quoted should have been like <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle" bgcolor="#96BEF0"><a href="http://www.moonlightdelights.com/catalog/index.php"><img src="images/sitebanner.jpg" border="0" alt="Moonlight Delights.com" title=" Moonlight Delights.com " width="550" height="155"></a></td> <td align="right" valign="bottom" bgcolor="#96BEF0">??</td> </tr> </table> Im assuming you have just put the raw html in your header.php, if you cant see that code anywhere, let me know and I will try help more.
Guest Posted March 23, 2006 Posted March 23, 2006 I think I understood what you did. I'll see if I can not mess it up LOL. Keep your fingers and toes crossed! Thank you for responding!
Guest Posted March 23, 2006 Posted March 23, 2006 ok, I got my SSL cert and PayPal/Credit card logos in the blue section of the header as needed, but they are not showing up. No errors either. When I do a view source for the page, those codes do not show up either. Here is my table information: <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"><td valign="middle" bgcolor="#96BEF0"> <a href="http://www.moonlightdelights.com/catalog/index.php"> <img src="images/sitebanner.jpg" border="0" alt="Moonlight Delights.com" title="Moonlight Delights.com" width="550" height="155"></a></td> <td align="right" valign="bottom" bgcolor="#96BEF0"> <script language="Javascript" src="https://seal.godaddy.com/getSeal?sealID=16xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"></script> <BR> <!-- PayPal Logo --><table border="0" cellpadding="10" cellspacing="0" align="center"><tr><td align="center"></td></tr> <tr><td align="center"><a href="#" onclick="java script:window.open('https://www.paypal.com/us/cgi-bin/webscr?cmd=xpt/popup/OLCWhatIsPayPal-outside','olcwhatispaypal','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=350');"><img src="https://www.paypal.com/en_US/i/bnr/horizontal_solution_PPeCheck.gif" border="0" alt="Solution Graphics"></a></td></tr></table> <!-- PayPal Logo --> </td></tr> </table> Any ideas?
Guest Posted March 23, 2006 Posted March 23, 2006 Never mind - was in the wrong header.php. I got it! Thanks for your help, Gareth
Recommended Posts
Archived
This topic is now archived and is closed to further replies.