Jump to content

how do i remove the sideboxes/blocks on the main page?


Recommended Posts

You can do this two ways.

The first solution is to go to Modules > Positions and edit each of the modules in the "Left column blocks" and "Right column blocks" sections and add "index.php" to the "Exceptions" field.

The second solution is to edit header.tpl in your theme's directory and change lines 55-58 from:

<!-- Left -->

   {$HOOK_LEFT_COLUMN}



to:

{if $page_name != 'index'}
<!-- Left -->

   {$HOOK_LEFT_COLUMN}

{/if}



and lines 4-7 of footer.tpl from:

<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}



to:

{if $page_name != 'index'}
<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}

{/if}

Link to comment
Share on other sites

  • 4 weeks later...
You can do this two ways.

The first solution is to go to Modules > Positions and edit each of the modules in the "Left column blocks" and "Right column blocks" sections and add "index.php" to the "Exceptions" field.

The second solution is to edit header.tpl in your theme's directory and change lines 55-58 from:

<!-- Left -->

   {$HOOK_LEFT_COLUMN}



to:

{if $page_name != 'index'}
<!-- Left -->

   {$HOOK_LEFT_COLUMN}

{/if}



and lines 4-7 of footer.tpl from:

<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}



to:

{if $page_name != 'index'}
<!-- Right -->

                   {$HOOK_RIGHT_COLUMN}

{/if}




Great advice, thanks for sharing! Extremely useful
Link to comment
Share on other sites

×
×
  • Create New...