Jump to content

Avoiding columns in the front page (content with 100% width)


Recommended Posts

I'd like to put content in the main page, but not in a column. I want it to cover 100% of the page width. Now, if i add my html to the index.tpl file, it gets inserted into de center column. How can i avoid that so i can have my html 100% width?

Link to comment
Share on other sites

It's a little tricky, you will have to do the following:

1) Remove the side columns from the homepage (you can add an {if $page_name != 'index'} {/if} around {$HOOK_LEFT_COULMN} (and the right one).
2) You will need to create a new CSS class for the homepage with a bigger width, and make sure that class is used only if $page == 'index'

Link to comment
Share on other sites

Mh... I see. So, code could became a little dirty after all.

I'll try this implementation but with a variation (leaving alone the css trick you mentioned). But also i realized that the right column, which i'm not using at all, can be set with 100% width... so i should use yor conditional to place content in there.

Thanks!

Link to comment
Share on other sites

×
×
  • Create New...