It would be nice to have a way to print the name of the site on the masthead. If the icon is not used, the masthead is blank, and would be a prime place for the name of the site.

Comments

wtmcwilliams’s picture

I modified "page.tpl.php" like this to show the Title in the Masthead.

Insert this:

if ($site_name) :

print($site_name)

endif;

Between these two snippets of code in the header:

if ($logo) :

endif;

if (module_exist('banner')) :

endif;

Your code should look like this when your done:

quux’s picture

Title: Title in Masthead » This may be a little easier to read

... but it's the same as wtmcwilliams wrote; a couple of simple changes to page.tpl.php. Except I also decided to show the site-slogan (the second 'quuxo added' block).

<!-- START: HEADER -->
<div id="wrapper1">
 <div id="wrapper2">
  <div class="header" id="header">
   <div class="headerpadding">
    <?php if ($logo) : ?>
     <div id="site-name"><a href="<?php print url() ?>" title="Home"><img
      src="<?php print $logo ?>" alt="<?php print $site_name ?> Logo" /></a>
    <?php endif; ?>
<!--quuxo added-->
     <?php if ($site_name) : ?>
     <?print($site_name) ?>
     <?php endif; ?>
<!--end quuxo's add-->
     </div>
    <?php if (module_exist('banner')) : ?>
     <div id="banner"><?php print banner_display() ?></div>
    <?php endif; ?>

<!--quuxo added-->
     <div id="site-slogan">
     <?php if ($site_slogan) : ?>
     <?print($site_slogan) ?>
     <?php endif; ?>
     </div>
<!--end quuxo's add--> 

To make the slogan more visible, I made a small change to line 185 of style.css (the bolded part is what I added).

#site-name, #site-name a, #header a, <b>#site-slogan</b> {
  color: #fff;
  text-decoration: none;
}

Thanks for a great theme,

quuxo (http://adminfoo.net)

quux’s picture

Title: This may be a little easier to read » Title in masthead

oops. I accidentally changed the title of this issue ... changing back.

Mad Maks’s picture

Status: Active » Closed (fixed)

i assume the answers helped you with your problem