Hi, I'm wondering if it is possible to have a different theme while administering a site? I basically want to have an admin site which is different to the site theme for the following reasons:

  1. The main site does not use sidebars so I'd rather not have them in the site theme
  2. The main site theme doesn't really suite being used for admin anyway

Is this possible to do?

Comments

llyra’s picture

Here's a link to a Drupal theme section that talks about creating a unique class/id for each page/section. It applies to the admin section(s) as well.

http://drupal.org/node/32077

For some reason though, when I added this code, the ticker does not appear listing what page is what class/id when in admin. I'm using 4.7 RC3. Still playing with it but thought you may use the admin section feature listed within this document.

Marc Bijl’s picture

Sorry, don't have a lot of time (have an appointment). But what I usually do is download sections module, create two themes (one for admin, and one for default website) and separate them by defining the paths they use - or do not use.

Posted something about this here:
- http://drupal.org/node/58504#comment-110915

Success!

___________________
discover new oceans
lose sight of the shore

serg-1’s picture

Your best bet is to install the TAXONOMY THEME module. With it you can use multiple themes on your site and it provides an area to specifiy a specific theme for the admin pages.

budda’s picture

Check out how the "Burnt" theme (available here on drupal.org) does it. In the template.php file is checks for the /admin/ in the url and inserts an additional css class in the main

to allow you to style it wider etc.

You can do something similar using template.php

--
Drupal consultancy and Drupal theme design

solipsist’s picture

I solved this by checking arg(0) to see if it equals "admin", if so the menu appears in a special DIV because it doesn't fit in the default menu area.

I use custom CSS all across my site and I set the name of the current site section by checking URL and/or taxonomy terms. It's rather simple but it requires some coding.

--
Jakob Persson - blog
Leancept – Digital effect and innovation agency

ninetwenty’s picture

Thanks for the swift replies, guys. Brilliant!