The best way to ditch the side column in X-cart 5 is to create a controller class that decorates XLite\View\Controller and redefines the getSidebarFirstHiddenTargets() method.
Here is an example from my new Magnifico theme:
Code:
namespace XLite\Module\Guru\Magnifico\View;
/**
* Controller main widget
*
*/
class Controller extends \XLite\View\Controller implements \XLite\Base\IDecorator
{
/**
* Define the pages where first sidebar will be hidden.
*
* @return array
*/
protected static function getSidebarFirstHiddenTargets()
{
$hiddenTargets = [];
$hiddenTargets[] = 'main';
return array_merge(
parent::getSidebarFirstHiddenTargets(),
$hiddenTargets
);
}
}
This will remove the sidebar from the target "main" (home page) only.