Iniquityclothing Posted January 10, 2007 Share Posted January 10, 2007 hi folks how is it possible to use an HTML "bar" as the header to my website. I have searched around and found this info but i constantly get errors on my website. and yes I have changed to filename accordingly but still i get errors. this is the info i have followed Then in includes/header.php in your store, find CODE <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td> You can change this to something like CODE <td valign="middle"><?php include 'images/myheader/header.html'; ?> </td> changing it of course to what folder and file names you will use. Is this the correct way to go about using an HTML header bar, cos I cant work out, any help would be greatly appreciated, Cheers View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
kgt Posted January 10, 2007 Share Posted January 10, 2007 That is a perfectly valid way to do it, as is just adding the html to the header file: <td valign="middle"> <b>This used to be an image</b> </td> If you get errors, you need to report them. Can't tell what you're doing wrong because we can't see what you're doing. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 10, 2007 Author Share Posted January 10, 2007 thanks for the help i have now noticed that is said header.HTML and mine is header.HTM !! anyway maybe you could help me how can i change the alignment of the html header? take a look at my site to see what i mean, www.iniquityclothing.com View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
kgt Posted January 10, 2007 Share Posted January 10, 2007 You have included an entire html page. Your HTML code should be just a fragment - it shouldn't include all the head and meta tags, etc. I would also suggest not creating this page in MS Word. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 10, 2007 Author Share Posted January 10, 2007 its MS frontpage i used to test this out, how can i achieve what you just said? only include the bits I want? View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
kgt Posted January 10, 2007 Share Posted January 10, 2007 To start, take a look at an HTML tutorial to familiarize yourself with HTML. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 10, 2007 Author Share Posted January 10, 2007 i have dream weaver if its easier to use that? this is the code of the html page: <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv="Content-Language" content="en-gb"> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <link rel="File-List" href="header_files/filelist.xml"> <!--[if !mso]> <style> v\:* { behavior: url(#default#VML) } o\:* { behavior: url(#default#VML) } .shape { behavior: url(#default#VML) } </style> <![endif]--><!--[if gte mso 9]> <xml><o:shapedefaults v:ext="edit" spidmax="1027"/> </xml><![endif]--> <body bgcolor="#000000"> <p><!--[if gte vml 1]><v:rect id="_x0000_s1029" alt="" style='position:absolute;left:114pt;top:6.75pt;width:720.75pt;height:126pt; z-index:1' filled="f" strokecolor="white" strokeweight="9pt"/><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:1;left:146px;top:3px; width:973px;height:180px'><img width=973 height=180 src="header19_files/image001.gif" v:shapes="_x0000_s1029"></span><![endif]></p> </body> </html> View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 10, 2007 Author Share Posted January 10, 2007 would this be correct to use? i have deleted the head and meta tags and pasted it into notepad, <html> <body bgcolor="#000000"> <p><!--[if gte vml 1]><v:rect id="_x0000_s1029" alt="" style='position:absolute;left:114pt;top:6.75pt;width:720.75pt;height:126pt; z-index:1' filled="f" strokecolor="white" strokeweight="9pt"/><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:1;left:146px;top:3px; width:973px;height:180px'><img width=973 height=180 src="header19_files/image001.gif" v:shapes="_x0000_s1029"></span><![endif]></p> </body> </html> View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
kgt Posted January 10, 2007 Share Posted January 10, 2007 If you have dreamweaver, I'd suggest scrapping what you have and recreating it in dreamweaver. MS products add a whole lot of junk that make them both inoperable with non-MS products and extremely difficult to read. Dreamweaver adds it's own share of junk, but much less of it, so it's easier to read and maintain. ;) Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 10, 2007 Author Share Posted January 10, 2007 ok will do, how do i go about postioning it so it isnt covering any of the info on my site? sorry to take up your time :) View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
kgt Posted January 10, 2007 Share Posted January 10, 2007 That's part of why I think you should not use frontpage. It created that image with absolute positioning (don't know whether you told it to or not), which will make it overlap anything else in that area. I'm not familiar with frontpage, but that was a whole heck of a lot of markup code just to display one image. Keep it simple. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Iniquityclothing Posted January 10, 2007 Author Share Posted January 10, 2007 no worries thanks for the advice something like this maybe </head> <body> html header goes here </body> </html> View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support) Link to comment Share on other sites More sharing options...
kgt Posted January 10, 2007 Share Posted January 10, 2007 You don't what the html head body tags. Just the "html header goes here" part you quoted. Your page is being inserted into a complete HTML page with head and body tags. It is incorrect to have a second set, though most browsers will probably manage to display it okay. Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.