By runeveryday on
when i made some style changes to drupal front end, but it will make the back end layout odd or display wrong. how to distinct the front end style with the back end style clearly. in other words, how to make some style changes to front end not affect the back end style. how to do these better.any tips would be appreciated!
Comments
You might use a separate
You might use a separate theme for the back-end. You can set the administration theme on ?q=admin/settings/admin. There are also a few themes developed only as an administration theme such as rootcandy
thanks for your reply, now i
thanks for your reply, now i want to know, if i don't make a administration theme ,the back-end would use whose style ?
if you don't set a special
if you don't set a special admin theme, you we have the same theme for all pages in drupal, whether "backend" or not.
...
you can add a class that prints only on your admin pages - then add CSS styling to achieve what you want. i starting doing that recently and it works pretty well. for instance, i now add more width to admin tables and use z-index to print them over the top of the sidebars.
i print the special class in my main page content section, but you could print anywhere.
it requires a small bit of php in your page.tpl.php file along these lines wherever you want it to print:
i'm not a programmer, so i sort of hacked this for you - might not be exactly right code. mine is a lot longer with several conditionals, so i tried to simplify it here and maybe did it right or maybe not. if this idea seems like it'd work for you, then i'm sure you can find somebody to help you get the right code.