Guest Posted December 3, 2003 Share Posted December 3, 2003 Great forum, have much to learn about osCommerce (and php), but I wanted to share this little tidbit: It's important to get your keyphrase-rich body text as high up in the HTML code as possible. Using a 2-column layout, the table trick will make your main content appear before the left navigation column. It's a simple tweak that makes a big difference in ranking potential. <html> <head> </head> <body> <table> <tr> <td><!-- leave TD empty - it almost disappears --></td> <td rowspan="2">Main content text goes here</td> </tr> <tr> <td>Left navigation goes here</td> </tr> </table> </body> </html> Basically, take the default STS template, move the right column contents into the left column, and delete the right column. Then move your left nav and body sections into the table trick code above. When you consider how much code is involved in the left column, epecially with the right column variables added, you can appreciate how much sooner body text appears in the HTML source. It makes a considerable diference in ranking, and help make pages more unique, since they don't all begin with the same left nav code. Link to comment Share on other sites More sharing options...
jimbojones Posted February 23, 2010 Share Posted February 23, 2010 Found this mentioned via a forum search, can anyone tell me if this can be done using oscommerce? Link to comment Share on other sites More sharing options...
Guest Posted February 24, 2010 Share Posted February 24, 2010 Found this mentioned via a forum search, can anyone tell me if this can be done using oscommerce? To do this with osC in most of the pages in your catalog folder find; <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"> Change to; <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td height="0" width="<?php echo BOX_WIDTH; ?>" valign="top"></td> <!-- body_text //--> <td rowspan="2" width="100%" valign="top"> Then find; <!-- 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> </tr> </table> <!-- body_eof //--> Change to; <!-- body_text_eof //--> <td height="0" width="<?php echo BOX_WIDTH; ?>" valign="top"></td> </tr> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <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> </tr> </table> <!-- body_eof //--> Index.php will be a bit different but not to hard to change. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.