Hello,

I'm wanting to remove the Site Name at the top left corner through "Administer + Site Building + Themes" and un-check the Site Name Box. What happens is the name and logo disappear, even when the Logo Box is left checked. It seems to be linked. I can remove the logo without affecting the name but not the other way around. What's going on?

Daisy
dragonwood.ca/test

Comments

chaos21in’s picture

Assigned: dragonwood » chaos21in
Priority: Normal » Minor
Status: Active » Needs review

i think changing these lins (38 to 46) in page.tpl.php may work:

Current:

if ($site_name && $logo) {
            print "
        <a class=\"sitelogo\" href=\"$base_path\" title=\"$site_name\"><img src=\"$logo\" alt=\"$site_name\" id=\"logo\" /></a>";
          }
          print "
        <div class=\"sitename\">";
          print "
          <h1><a href=\"$base_path\" title=\"$site_name\">$site_name</a></h1>
        </div>";

change to :

if ($logo) print "<a class=\"sitelogo\" href=\"$base_path\" title=\"$site_name\"><img src=\"$logo\" alt=\"$site_name\" id=\"logo\" /></a>";
if ($site_name) {        
          print "<div class=\"sitename\">";
          print "<h1><a href=\"$base_path\" title=\"$site_name\">$site_name</a></h1></div>";
}

--rafi

NLMA’s picture

Hmm... changing this just leaves me with a blank site.

NLMA’s picture

ah...

simply replacing the && to || in the code did the trick

mdupont’s picture

Status: Needs review » Fixed

Considering it's fixed.

Status: Fixed » Closed (fixed)

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