jdmicros Posted August 11, 2010 Posted August 11, 2010 I have just installed Oscommerce and set it up to look pretty much how I want it to. I am about to start uploading my store but have found a problem. On my homepage I have a gap towards the top of the page above my categories. Can anyone advise how I remove this? The site is located at http://www.jdmicros.co.uk/catalog/. Thanks in advance for what is no doubt a very simple problem to solve.
germ Posted August 11, 2010 Posted August 11, 2010 In the main index.php find this code: <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> Change it to: <!-- commenting out to move other data up the page <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> //--> Backup the file first. You break it - You bought it... :-" If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
jdmicros Posted August 12, 2010 Author Posted August 12, 2010 Thanks but unfortunately I cannot find that code in the file 'catalog/index.php'. Not sure what I'm doing wrong.
germ Posted August 12, 2010 Posted August 12, 2010 It won't look exactly like that because you've changed a few things. Look for 'table_background_default.gif'. It only occurs once. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
jdmicros Posted August 13, 2010 Author Posted August 13, 2010 I found that line and amended it using your text but as you can see from the site it's now moved the whole section further down the page!!! Sorry
germ Posted August 13, 2010 Posted August 13, 2010 If you do it right, it will work. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted August 13, 2010 Posted August 13, 2010 Your <table> tags are screwed up. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
jdmicros Posted August 14, 2010 Author Posted August 14, 2010 In that case I'm guessing it's either a problem with the skin I've applied or the categories on front page module. Unless you can point me in the right direction I'll just recreate the store and see which of them screws it up.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.