Hi,
why is it that some parts of the Admin interface uses the Admin theme and some parts use my site theme?
For example the section "Blocks" is always in the site theme. This is annoying, because some parts of the "Block" section are not rendered in the site theme, like the "Add Block" button. When I want tio add a block I always have to make "Garland" the d use "Garland" as my admin theme. "Create Content" also appears in the site theme and not the admin theme.
Can anyone tell me what I can do about this?

Thanks a lot!

Comments

doodikopf’s picture

I guess this happens because you missed to style all elements of the site in your theme. drupal first inserts a standard css into the header, then theme and user-styles follow. so your theme will always overwrite drupals default values. but only if you set em'
regards

pommac’s picture

This is actually a known issue. It's by design for the block admin page, but for other pages it's a bug and has to do with the init order of stuff. Not sure if anything's being done about it, though. Check this page for more info.

I "solved" it by adding the parts that are in the admin theme but not in my own theme and wrapping them in a user check:

<?php global $user; if($user->uid): ?>
  <?php if (isset($tabs2)): print $tabs2; endif; ?>
<?php endif; ?>

The page itself is kind of ugly, but at least all the functionality is there.

cattalk’s picture

Thanks both of you for your answers!
Pommac, I'll try your solution! That was the hint I was looking for :)