This forum is for assistance with theme development.

adding block regions, having problems.

I'm using 4.7 and have added some block regions for additional sidebars (goal being that I can have 2 left or right sidebars, one of which is only visible to registered users.)

I'm sure my problem is due to the fact that I know very little about working with tables. I added 2 new regions. so I now have sidebar_left, sidebar_left2, sidebar_right, and sidebar_right2.

The problem is the new sidebars are being placed side by side instead of on top of one another. so what i'm ending up with is this:

[sidebar_left][sidebar_left2][content][sidebar_right][sidebar_right2]

where I need to have this:

[sidebar_left] [content] [sidebar_right]
[sidebar_left2] [ ] [sidebar_right2]

Theme is bluemarine, here is how i'm incorrectly displaying the sidebars.


if ($sidebar_left) {

}
if ($sidebar_left2) {

}

if ($mission) {
print $mission

}

print $breadcrumb print $title
print $tabs

print $help

headerimg in the Kubrick theme

I'm using Drupal 4.6 and the Kubrick theme for 4.6.

I am trying to get the headerimg changed to what I created it. Here is the direct code from the style.css in the Kubrick on how to affect and change the headerimg:

/* Images */
	body	 	{ background: url(kubrickbgcolor.jpg); }
	#page		{ background: url(kubrickbg.jpg) repeat-y top; border: none; }
	#header 	{ background: url(kubrickheader.jpg) no-repeat bottom center; }
	#footer 	{ background: url(kubrickfooter.jpg) no-repeat bottom; border: none;}
			
			
/*	Because the template is slightly different, size-wise, with images, this needs to be set here
	If you don't want to use the template's images, you can also delete the following two lines. */
			
	#header 	{ margin: 0 !important; margin: 0 0 0 1px; padding: 1px; height: 198px; width: 758px; }
	#headerimg 	{ margin: 7px 9px 0; height: 192px; width: 740px; } 
/* END IMAGE CSS */
		

/* 	To ease the insertion of a personal header image, I have done it in such a way,
		that you simply drop in an image called 'personalheader.jpg' into your /images/
		directory. Dimensions should be at least 760px x 200px. Anything above that will
		get cropped off of the image. */
		
/*	#headerimg 	{ background: url(personalheader.jpg) no-repeat top;} */	

I have gone through and created a picture called personalheader.jpg. Now, there is no "images" folder in my Drupal install so I was just assuming he meant to use whatever folder you store your images in. I modded the css to look like this:

What does $header display ?

I have just started looking at the code for themes, a I intend on making my own, and I noticed $header, I checked on my site and it never displays anything for $header, just wondered what the use of it is.

Its on line 28 on the blue marine page.tpl.php file

<td colspan="2"><div><?php print $header ?></div></td>

Cheers Nick

FriendsElectric Center Top/Primary Links

I have been working with Drupal for about a week now - obviously not very long. I'm working with the FriendsElectric theme and am making some modifications to it because of a template that I'm using for my client. I would like to center the top links that appear in the header. I can't seem to get the CSS working to accomplish this. I'm hoping that someone else has worked with this theme and has done this same thing.

THANKS!

textarea width, javascript and floating boxes

I've found a great problem. The textareas in 4.7 are replaced with javascript for a fancy resizable textarea but, trying to modify them via css won't work for me...

The problem I have may be a bigger problem.
the "main" div (for content) is a normal block box
but on the right I've got a floating box (right side pane).

Time of Day

I had an idea! I was wondering if it would be possible to automatically change themes based on the time of day (i.e. day and night)? I don't really know where to start on that, but it sounds simple enough. Maybe I'm barking up a huge tree, but if anyone could give me some idea, that would be great!

Pages

Subscribe with RSS Subscribe to RSS - Theme development