Guest Posted September 20, 2002 Share Posted September 20, 2002 I'd like to add tab style buttons to the top of header.php like Amazon.com's homepage. Has anyone done this ? Is there a contrib that can give me the same results ? As always, thank you all. Link to comment Share on other sites More sharing options...
Paul_C Posted September 20, 2002 Share Posted September 20, 2002 If you're any good at php and/or html, try editing header.php. If not you may want to hire someone to do it for you. "It's a damn poor mind that can only think of one way to spell a word." -- Andrew Jackson Link to comment Share on other sites More sharing options...
CC Posted September 20, 2002 Share Posted September 20, 2002 It is quite easy to do actually. If you basically want to add images, just put them in. If you want to replace the 'My Account' 'Cart Contents' & 'Checkout' boxes you will need to use the SSL code to make sure it links via https if you have it enabled. Open header.php in Dreamweaver MX or something and take a look athe phsyical view aswell as the code view and you will get a feel for it. Or open in notepad and view the source and see if you can follow it from there. but TBH it is very easy to do. Make a backup of header.php and then play with it, this is probably the best way to do it. JUST MAKE SURE YOU KEEP A COPY OF THE ORIGINAL HEADER.PHP! CC. Link to comment Share on other sites More sharing options...
mattice Posted September 20, 2002 Share Posted September 20, 2002 If you want to do it so you can add more parent categories dynamically later you should code it so it selects all categories from the database that have a parent that's '0' (meaning their at the top level). Then create tabs for them accordingly. I know it's not the easy way but if you suddenly decide to add 6 new categories or rename them you'll be a happy camper. "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
pmarshal Posted September 24, 2002 Share Posted September 24, 2002 I just recently wrote a feature to include dynamic tabs in the header. I haven't contributed it yet, but I can help you get it going if you need. It's pretty nice. The tabs are dynamically created based on the main categories. The tab color is set in the stylesheet and the tab will be highlighted for that category or any subcategories. Contact me and I will either provide the files or help you get it working. Take care, Paul Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.