I've been trying to figure out how to do a custom theme but a have a few roadblocks. I've followed the tutorials at Drupal Dojo and also gotdrupal, drupal.org documentation tutorials amongst others. I have my theme up have the following issues:

I have set Drupal to use different theme for administration (Garland) and have my custom theme set for the main theme. Despite this it displays my custom theme for organising blocks ('blocks' menu). Aparently this is by design but my custom theme doesn't have any styles for the blocks except system.css. If I go to jquery and click on the block for the dragable elements then it shows system.css in some places but not system-rtl.css (seems like this one should be there too). I.e. .dragable is in html divs but never used.

I added system-rtl.css and style-rtl.css to my dir. Bluemarine doesn't seem to have these listed in its info file but uses them so assume D6 it will pick them up. (Incidentally about system-rtl.css, aparently it won't override due to a bug?).

So to recap:
How do I get the blocks page to look right? (Can't drag or adjust anything in custom theme.) Can it be set to admin theme?

Comments

mndonx’s picture

Hi Adamantus,

How did you build your custom theme? From scratch or with a base theme? Also, is javascript working on the page? (Is it commented out in your theme.info file?) Or is there an error breaking the js? (Use the console in Firebug to spot a problem.) Do you have Theme Developer module enabled?

Let me know if that helps -
Amanda

Adamantus’s picture

Thanks mndonx. The theme was copied from bluemarine mostly, but with my own page.tpl.php obviously. I haven't bothered with js since my theme doesn't use it, but I'll add the js and see if that helps. I haven't got the theme developer module, assuming this will help?

Edited

Actually Bluemarine's info file doesn't mention any js and neither does any other theme I can see. I haven't messed with overrides in this area so can't see it being an issue.

mndonx’s picture

Hmm, I'm not sure. I tried enabling BlueMarine on a test site, and the drag & drop function on the block page worked still. I asked about the Theme Developer module because sometimes that can cause conflicts with other javascript. Is there any other javascript on the site we can test? Did you check to make sure it wasn't breaking somewhere using Console in Firebug?

Adamantus’s picture

Yes I looked in the error console but there were no errors. I disabled jquery as I included it, but so did Drupal. I tried removing all js in my theme and deleting browser and drupal cache but it made no difference to whether the blocks page worked. I did a final error console check but nothing new. I think it's safe to say that it isn't js related.

My current info file:

name = Autism Works
description = Custom theme for autismworks.co.uk
version = 1.0
core = 6.x
engine = phptemplate

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer

stylesheets[all][] = css/styles.css
;stylesheets[all][] = css/print.css

;IE styles
conditional-stylesheets[if lt IE 8][all][] = css/html5.css
conditional-stylesheets[if lt IE 7][all][] = css/ie.css

;CSS Overrides
stylesheets[all][] = system.css
stylesheets[all][] = system-menus.css

--Edited--

I think that I've fixed the issue. It was just a case of having some of my own css which was more specific than the css given by the blocks page files. Changing individual css values brings back what I want it to.

But now I seem to have these block region sections. Every module has printed it's name into the page where the module is located in yellow. They are contained in a div with block-region class on it. Does anyone know why this might be?

mndonx’s picture

I think that means it's working properly. :) If you mean "block region" instead of "module." The blocks configuration page prints the name of each block region at the top of that region in a yellow box to show you where each block region is - it's just a handy thing so you know where things are. They don't show on any other pages in Drupal.

Adamantus’s picture

Thanks for that. Glad that the yellow things won't be bothering me.