By cssgalactic on
I need to have a theme for the home page and a different theme for the rest of the site. How can that be done?
Can someone show me the documentation to it.
Thank you
--cssgalactic
I need to have a theme for the home page and a different theme for the rest of the site. How can that be done?
Can someone show me the documentation to it.
Thank you
--cssgalactic
Comments
Check this
http://drupal.org/node/34969
Why a whole new theme for just one page?
Without knowing more details, I'd recommend just making the front page changes in your existing theme.
some example methods in increasing order of difficulty.... (you might even use a few of them)
By default the classes in the body tag identify whether you are on the front page or not - allowing you to target different CSS for the front page.
You can create a page-front.tpl.php template and change the layout around there (even hardcode all the HTML if you really want something completely different). I'd recommend starting out with a copy of the standard page.tpl.php though.
By default all templates include a variable $is_front that you can use in your templates PHP.
If you need to tweak the internals with theme overrides or preprocess functions there is a drupal_is_front_page() function that you can check when deciding what to output.
I am putting together a
I am putting together a complex site, I have a theme on the front page with main content right and left sidebars, I need the 2 level sections to use a theme with only the right sidebar and in some instances I need the two sidebars but arranged differently from the homepage.
Another user suggested the sections module. But what you are suggesting with the page-front.tpl.php looks like a good solution can you show me the link to the documentation?
Thank you.
Template suggestions
From the Drupal 6 theming guide in the handbook...
The list of default core template suggestions:
http://drupal.org/node/190815#template-suggestions
How to completely customise the available suggestions:
http://drupal.org/node/223440
Please don't post the same
Please don't post the same question multiple times.
I was not sure if I asked the
I was not sure if I asked the question in the right forum, It wont happen again.
--cssgalactic