By elmundo on
Hello,
I want a user select different themes on my drupal site, but the theme apply only for certain pages, like "page-blog.tpl.php" and "node.tpl.php". How can I do that?
I have a multiblog site and I want to allow users change their themes, but applying only for the blog page and the nodes, the rest of the pages have the default theme (not the on selected by the user).
I really apreciate your help, thanks!
Comments
I think you could do it by
I think you could do it by just creating multiple versions of your default theme with different names. Then just change the node-blog.tpl.php in the different themes to the layout you want.
If you want to change the whole page layout rather than just the node, have a look in the page.tpl.php snippets section there's a snippet or two that lets you do that.
Finally depending on what kind of theming you want to do, you could also just create different css subthemes of your main theme with the new css stylesheet only targeting blog elements or whatever. You could set up your standard page.tpl.php to change the id of a container div depending on the content type.