Site Name linked to Logo

dragonwood - April 11, 2007 - 22:57
Project:Multiflex37
Version:5.x-1.x-dev
Component:User interface
Category:bug report
Priority:minor
Assigned:chaos21in
Status:closed
Description

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

#1

chaos21in - April 28, 2007 - 08:51
Priority:normal» minor
Assigned to:dragonwood» chaos21in
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

#2

NLMA - June 1, 2007 - 09:50

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

#3

NLMA - June 1, 2007 - 10:02

ah...

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

#4

mdupont - February 27, 2009 - 15:25
Status:needs review» fixed

Considering it's fixed.

#5

System Message - March 13, 2009 - 15:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.