Download & Extend

Using Header Image with Artisteer-generated themes

Project:Header image
Version:6.x-1.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Has anyone had any experience using Header Image with a theme generated by Artisteer (http://www.artisteer.com), the theme-generating tool? I'm trying to figure out what changes to make in the theme to accomodate Header Image. As Artisteer is becoming more widely used, I thought it'd be useful to figure out how to do it and then assemble some basic instructions/documentation for adjusting the generated theme to work with Header Image. But I've not made much progress. Any ideas?

Comments

#1

What is so special about these themes? Does is support blocks? What is the problem you run into?

#2

I'd like to continue this.. the problem is that templates built with Artisteer don't use a header block. So the block is not usable (header is just a jpeg) for tools like headerimage. Does anyone know a solution?

I thought of something like somehow creating a region of the exact same size and position as the header and "overwrite" the actual header image. But I don't know how I can do that :(

Oh, will there ever be a final for Drupal 6?

#3

Hello,

Had to read a lot of tutorials but found the sollution.
The trick is to make the header region into a block.
You can set al kind of images into that block depending on whatever you like.

Insert this peace of code in page.node.tpl and page.tpl right afther this:

The code:

<?php
if ($your_new_region) :
?>

<?php
echo $your_new_region;
?>

<?php
endif;
?>

Then go to your_theme.info file and add your_new_region.

That's it!
Good luck
Niels

#4

Status:active» fixed

ndenhild, very good that you found a solution. This is indeed how you add a region to the page template.

#5

hello ndenhild,

I have been looking for a solution to edit the header for a few days now and it seems your solution might be the way to go. I am a complete newb for drupal, don't even know much about code or anything so I wouldn't know where to place the lines of code you're suggesting.

The only files in the artisteer theme folder I can find which is the closest to what you've mentioned is node.tpl.php and page.tpl.php.
Are these the same thing as page.node.tpl and page.tpl?

And if so, where do you place these lines of code?

thanks so much!

#6

Hi Ivanova,

I was in a hurry then, so sorry if I didn't descripe it well.
The files are page.tpl.php and page-node.tpl.php.
Again the code, see my NdH mod start.

<?php
if ($imageheader) :
?>

<?php
echo $imageheader;
?>

<?php
endif;
?>

Hope this helps.

#7

page.tpl.php is the right place to put this code. page-node.tpl.php is not a standard Drupal template, but probably introduced by a specific theme.
Also add in the .info file (e.g. MY_THEME_NAME.info) this line:

regions[imageheader]           = Header image

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

I created a theme using Artisteer 3 for Drupal 7, but when I exported to drupal 7 and uploaded to my hostmosnter CP and started editing it kept the logo but I'm not able to change the header slogan , It says "Drupal" on the top right, but i want to change that to the slogan of the company,
How can I do that?..... please sombody help me.... I'm not and expert on this and I'm going kinda crazy...
I'm trying to attach pics to this post to see if I can explain myself better.

First one is how it looks on Drupa 7 and the other one is how I created on Artisteer.

Please help!

AttachmentSize
photo(2).JPG 24.84 KB
photo(1).JPG 27.84 KB

#10

Status:closed (fixed)» active

Hi

Is this still working for drupal 7?

Couldn't get it to work. Any help would be appreciated.

I pasted the codes of ndenhild in the page.tpl.php and I added the code of Sutharsan to the .info file.
In the blocks section I can find the new region and add a block, but it doesn't appear in the header.

Greetz

nobody click here