This is a limitation I ran into with Domain Access. To achieve it, I would have to copy my theme and give it a new name, then upload a new logo to that theme. Instead, it would be nice if when creating a site there was an option for a logo along with the site name.

Comments

cjdavis’s picture

In the context for a site, add a theme reaction, and simply put the filename for the site's logo image in the $section_subtitle variable. The simplest method is just to use the entire path, such as "/sites/all/themes/subsites-theme/img/foo_site_banner.png" You could also add the site name in the $section_title.

Then in your page.tpl.php file, just use those variables for displaying the logo and site name. For example:

      if ($section_subtitle || $section_title) {    // replaces the code "if ($logo || $site_name) {"
        print '<a href="'. check_url($base_path) .'" title="'. $site_name .'">';  // $base_path should have the site url automatically
        if ($section_subtitle) {
          print '<img src="'. $section_subtitle .'" alt="'. $section_title .'" id="logo" />';
        }
        print $section_title .'</a>';
        // print $site_slogan;
      } else {
        print '<div style="clear:both; height:20px;"></div>';
      }
hydra’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

As this module has not been maintained for some time, I am closing this ticket as “outdated”. A new version of sites which is architecturally and technically unrelated to the Drupal 6 and Drupa 7 versions will be published here soon.
Thank you for your contribution.