pcObelix Posted November 4, 2009 Posted November 4, 2009 Okay, I have followed all the instructions for removing the right hand column, but end up with a totally stupid looking page......Not sure what the problem is. Screen shot of website before I try and remove right hand column The look of the code before I do anything <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php /* </tr> </table> */ ?> <!-- body_eof //--> Picture of site after I try and remove right hand column And a cut of the code <!-- body_text_eof //--> <-- <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> --> <!-- right_navigation //--> <?php // require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> <?php /* </tr> </table> */ ?> <!-- body_eof //--> As you can see, all I have done is change 2 lines,and this is what happens. Hopefully someone can maybe see where I am going wrong. Thanks Peter
germ Posted November 4, 2009 Posted November 4, 2009 Change this: <!-- right_navigation_eof //--> </table></td> To <!-- right_navigation_eof //--> <!-- </table></td> //--> If you comment out the beginning tags you have to comment out the ending tags as well. 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 >
MrPhil Posted November 4, 2009 Posted November 4, 2009 And change <!-- body_text_eof //--> <-- to <!-- body_text_eof //--> <!-- I don't know how it was removing the <td... line without a proper start-comment mark, but evidently it was. In any case, it's good to have proper comments, even if your browser accepts a nonstandard one.
pcObelix Posted November 5, 2009 Author Posted November 5, 2009 Okay I now have the page looking okay, but I still have the right column. Does is matter that I am using the STS add on for oscommerce. Where else does index.php get it's information from to layout the main page. Maybe I am missing a file somewhere along the line
KJ666 Posted November 5, 2009 Posted November 5, 2009 To remove it take out this part: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">--> <!-- right_navigation //--> <?php // require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td>
djdeuce Posted November 18, 2009 Posted November 18, 2009 I'm having a weird problem with removing right column. After I remove it my index page and product category pages shift down. When I add the right column back it shifts back up. None of the other pages are affected this way with the same code commented out like instructed above. Anyone else have that problem? View my problem at www.shedsforlessdirect.com Thanks!
djdeuce Posted November 18, 2009 Posted November 18, 2009 To fix you need to uncomment this: <?php /* </tr> </table> */ ?> change to: </tr> </table> These tags were for a table above the right column.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.