I am developing a site for a local woodturning association. And like most local chapters of any national association they have a different logo than the national.

I would like to insert a second logo to the far right same size as the local chapter and have it show on every page. I am using version 7.x-1.0 of danland. What code would I add?

Comments

danpros’s picture

Hi,

The fastest way you can do is just adding the <img/> directly in your page.tpl.php (this for main), and for the real logo is for sub site etc.

Dan

amiata’s picture

Hi,

I am also trying to do the same thing. Would you be kind enough to elaborate Dan, I'm not sure from your reply exactly how to intervene in the header section of the page.tpl.php file to add the second logo or if I should also create a class a some css to move the second logo over to the right ?

many thanks,
Alex

danpros’s picture

Hi Alex,

You should creating your own subtheme so when you updating the theme to latest release, your changes will still remain.

You can add it manually like this, I put that in near search box-region in page.tpl.php:

<?php if ($page['search_box']): ?>
	<div id="search-box">
		<?php print render ($page['search_box']); ?>
	</div><!-- /search-box -->
<?php endif; ?>

<img class="your-custom-class" src="the-url-of-your-images"/> <!-- I add this -->

<?php if ($feed_icons): ?>
	<div class="feed-wrapper">
		<?php print $feed_icons; ?>
	</div>
<?php endif; ?>

In style.css or local.css if you are using it, write like this

.your-custom-class {
float:right; <!-- this will float the image to the right -->
height:50px;
width:100px; 
}

Dan

dthomas731’s picture

Dan you are my hero!

I had successfully put the logo in the search region with a custom block. But had to give up that region to do so.

Also for others you can add a link associated with the image just like the site logo by using the following

Only local images are allowed.