Skip to main content
page last edited on 18 April 2016

How to hide left-hand bar for static pages only

This article applies to the specific versions of software: X-Cart 5.2.16 and earlier
Version: 5.4 and early

If you would like to hide the left-hand bar for static pages only, but still want it displayed for other pages, just follow the below guide.

Step-by-step guide

Here are the steps involved:

  1. Install and activate "Custom Skin" module

  2. Create the following custom script in your X-Cart installation:


  3. Add the following code to the custom script:

    namespace XLite\Module\XC\CustomSkin\Core;
    class Layout extends \XLite\Core\Layout implements \XLite\Base\IDecorator
    * @return array
    protected function getSidebarFirstHiddenTargets()
    return array_merge(
  4. Rebuild the X-Cart cache.