Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

remove right column


Guest

Recommended Posts

How do you romove right column entirely to leave more room for content

Amanda (Boxtel) told me this one... hope I relay it right!

 

In the root, in all the pages that the following appears (about 40) change

 

<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>

 

hope I typed that right as I don't have it any more, but is at the end of the file.

 

and replace it with this:

 

<?php
if (SHOW_RIGHT_COLUMN) { 
echo '<td valign="top">
<table border="0" width="' . BOX_WIDTH . 'px" cellspacing="0" cellpadding="2">';
require(DIR_WS_INCLUDES . 'column_right.php');
echo '</table>
</td>';
}
?>

 

In catalog/includes/application_top.php add

 

define('SHOW_RIGHT_COLUMN', false);

 

If you choose to later have a column right, just change the false to true.

 

It worked for me. Just remember when you do any new contributions that create a new page or if you create a new page yourself, do the above to these new pages too.

 

Julie

Link to comment
Share on other sites

  • 9 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...