If you view the source of the page you will see the $site_name gets printed as:

<a class="active" href="/"><a href="/" class="active">groups.devsites.com</a></a>

Instead just:
<a class="active" href="/">groups.devsites.com</a>

Hope that helps


gmclelland’s picture

When I take out line 177 in template.php
$vars['site_name'] = l($vars['site_name']);

Everything seems to work correctly.

I assume that line is in there so that the $site_name output can be translated?

StudioARE’s picture

Still an issue (with D7 too).

People looking for solution can delete line 129 in template.php

$vars['site_name'] = l($vars['site_name'], '');


Actually... make sure not to have the code in your subtheme... logically thinking.

phiscock’s picture

Is there a way to override just this line (or assign the version of the site_name variable from before this line is implemented, without the link attributes, to another variable) in the sub-theme's template.php file, rather than removing it from the master Tao theme template.php? That way I would not have to redo the amendment any time an update for the Tao theme was released.

Thank you for your help.

zsuffad’s picture

Version: 6.x-3.2 » 7.x-3.0-beta4
Status: Active » Needs review


I added the html TRUE option in my subtheme template.php file.

$vars['site_name'] = l($vars['site_name'], '<front>', array('html' => TRUE));

Its working for me.

phiscock’s picture

Version: 7.x-3.0-beta4 » 6.x-3.3

That solution didn't work for me but I was able to reset the variable in the subtheme's template.php with:

function subtheme_tao_preprocess_page(&$vars) {
  $vars['site_name'] = $GLOBALS['conf']['site_name'];

Hope this helps others.