Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide Left / Right Column from the homepage only.


mushoaibali

Recommended Posts

Hello Everyone,

 

Been going through the forums and did not find anything complete on how to remove either the left or right column from the homepage alone. A lot of forum posts had bits and pieces put together and then ultimately linked to addons that do not work any longer.

 

So for 2.3.x here is how you can hide the left column from the homepage.

 

in template_bottom.php
 

Find the following:

if ($oscTemplate->hasBlocks('boxes_column_left')) {

Replace it with:

if ($oscTemplate->hasBlocks('boxes_column_left') && basename($PHP_SELF) != FILENAME_DEFAULT . $cPath . '' . $_GET['manufacturers_id'] . '' ) {

in template_top.php
 

Find the following:

<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?>">

Replace it with:

<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ( $oscTemplate->hasBlocks('boxes_column_left') && basename($PHP_SELF) != FILENAME_DEFAULT . $cPath . '' . $_GET['manufacturers_id'] . '' ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?> ">

With the above codes you can easily figure out how to remove the right column bar from the homepage....and / or other pages...i.e. just replace boxes_column_left with boxes_column_right in the above codes before finding and replacing them.

Link to comment
Share on other sites

Hello Everyone,

 

Been going through the forums and did not find anything complete on how to remove either the left or right column from the homepage alone. A lot of forum posts had bits and pieces put together and then ultimately linked to addons that do not work any longer.

http://lmgtfy.com/?q=oscommerce+hide+column

Link to comment
Share on other sites

  • 4 months later...

Archived

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

×
×
  • Create New...