Skip to content

How to disable Blocks

Nadim Tuhin edited this page Sep 26, 2015 · 2 revisions

To disable core blocks

if(function_exists('onepager')) {
  Onepager::disableCoreBlocks();
}

To disable a group of blocks

if(function_exists('onepager')){
  Onepager::disableBlocks(['nav', 'pricing']);
}