Firstly, thank you for all your work on such a great theme.

I am trying to add more than one logo to the logo section in Marinelli.

A logo on the left, and two on the right: http://www.indigo-asset-building.org/

At the moment I'm cheating by putting all three images together and uploading that as the logo. Obviously that's a clumsy workaround - what we really want is three separate logos in the html.

I am pretty new to theming and I'm wondering if the best way to achieve what I want is to override page.tpl.php. If there is an alternative way I'm open to suggestions.

The problem I encountered is: when I try to make any edit to my overridden page.tpl.php I get all content shifting left.

Steps to repeat:
On a new drupal-7.8 download marinelli.
Copy subtheme directory, change subtheme.info and fix permissions if needed.
Copy marinelli/templates/page.tpl.php to subtheme/templates/page.tpl.php

Edit page.tpl.php, for example, by replacing:

<?php print $imagelogo; ?>

with this html which gives me two logos:

<div id="logo-container">
  <a class="active" title="Back to homepage" href="/"><img alt="marinelli" src="http://marinelli.local/sites/all/themes/subtheme/logo.png" typeof="foaf:Image" id="logo"></a>
  <a class="active" title="Back to homepage" href="/"><img alt="marinelli" src="http://marinelli.local/sites/all/themes/subtheme/logo.png" typeof="foaf:Image" id="logo2"></a>
</div>

Strangely, when I undo the edit, clear cache and refresh the page the content is still shifted to the left.

I attach a screenshot.

Thanks for your help!

Michael

Comments

michaellenahan’s picture

Title: Overriding page.tpl.php causes content to shift to the left » Adding more than one logo to Marinelli

Changed the title for greater clarity.

I'm still struggling with this. If anyone out there can offer a comment on how I can include more than one logo in Marinelli I'd be very grateful.

Thanks!

michaellenahan’s picture

An update: in the end, the only way I could get this to work was to change page.tpl.php in marinelli, rather than in my subtheme.