Image in the header region

gmasky - January 23, 2008 - 17:45
Project:Artists C01
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I would like to have an image in the header region for this wonderful theme.

I would like to disable the Site name, slogan and logo and instead have an image with site name, slogan and logo.

However when I disable Site name, slogan and logo, the header region disappears. How do I install an image in the header

Any help will be highly appreciated.

#1

artist.lupein - January 24, 2008 - 07:43

Latest version of ArtistsC01 theme has header region. Grab it and install it.

So, disable logo, site name and slogan in admin/build/themes/settings/artistsC01 and add a block with the image in the header region in admin/build/block/list/artistsC01.

That should do it.

Other feature I've added in latest commit is configurable header backcolor. This should make it easier to fit in your image to this region.

#2

gmasky - January 24, 2008 - 08:22

Thanks, I will try out the update.

#3

gmasky - January 26, 2008 - 05:29

I have tried a test image in http://stanislausbandra.in and it looks quite nice. This is a very valuable feature.

Your theme is possibly the most flexible theme I have used. Now only to get fluid widths to work. In its current state civicrm would probably break the theme. Also on a wide screen there a lot of blank areas on the screen.

Thanks for this theme

#4

artist.lupein - January 28, 2008 - 21:01
Status:active» fixed

#5

Anonymous (not verified) - February 11, 2008 - 21:01
Status:fixed» closed

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

#6

2createwdrupal - July 22, 2008 - 19:53
Version:5.x-1.x-dev» 6.x-1.1
Component:User interface» Code
Status:closed» active

I am using this theme and for the most part I like it. My issue here is that the theme RE-NAMES any image uploaded, by any method, to "themename_logo" eg. artistsC0_logo.jpg. I want my logo to retain the file name I give it. Where do I change this? I see references to the logo in artistsC01.theme and template.php. I tried changing one thing in .theme but it did not make a difference. I will continue to research this, but it would be nice if you could help direct me to the source of the re-naming.

Thank you.

#7

2createwdrupal - July 23, 2008 - 07:41

So far, I've gotten around this problem by providing the full path to the image-logo in place of

<?php if (isset($logo)): ?> <?php print '<a href="' . check_url($base_path) . '" title="' . $site_name . '"><img src="'. check_url($logo) .'" alt="'. $site_name .'" id="logo" /></a>'; ?> <?php endif; ?>

<?php print '<a href="' . check_url($base_path) . '" title="' . $site_name . '"><img src="http://www.example.com/sites/default/files/site-logo.jpg" alt="'. $site_name .'" id="logo" /></a>'; ?>

in page.tpl.php

I realize that this is a quick and dirty method. Wish I knew of a better way.

#8

Summit - January 18, 2009 - 14:42

Thanks for the tip! greetings, Martijn

#9

Mark C - November 19, 2009 - 11:09

You could also upload your logo to the server using FTP and then under Admin >> Themes >> Configure, use 'Path To Custom Logo'.

MC

 
 

Drupal is a registered trademark of Dries Buytaert.