Community

Remove Regions in Drupal (7) Based on Content Type

step 1. Create a tpl file

page-node-(content-type).tpl.php

step 2. Remove the Region(s) which you don't want

step 3. In template.php, upload this below given code

function (theme-name)_preprocess_page(&$variables)
{
if ($variables['node']->type == "( page-node-(content-type))")
{
$variables['template_files'][ ] = 'page-node-( content-type)';
}
}
step 4. Note : Clear Cache for Every Upload of tpl and template file.

nobody click here