Seems like it might be a pretty unusual situation to be in, but I happened to want to control the display of the branding zone a little closer, and ran into this. The easy solution in my case is to disable the branding zone altogether, leaving the "Site name" enabled. But it seemed to me that you might like to know about it.

Comments

gopherspidey’s picture

I was trying to figure this out myself. I traces it to this patch: http://drupalcode.org/project/omega.git/blobdiff/2f5eac7e5ea8ca6245324d3...

I did not want to display the slogan on the page, but I wanted it in the html title. I took the toggle display of the slogan, sitename, etc. I took as displaying on the page.

himerus’s picture

Can we verify this isn't the same reaction in Garland and/or Bartik?

It'll take me a bit (busy till the weekend) to test this one...
If it doesn't work the same way in those core themes, I'll have to use another method to grab the slogan in the preprocess code that generates the page titles.

gopherspidey’s picture

In Bartik, The html title of the page is the "node title | sitename" even when the site name is unchecked on the theme settings page. Bartik does not do anything with the html title it falls through to http://api.drupal.org/api/drupal/includes--theme.inc/function/template_p... $head_title

To fix the issue as I see it, we need to remove the toggle check in the file: omega/preprocess/preprocess-html.inc

The following lines 49-50:

$title = (omega_theme_get_setting('toggle_name') ? filter_xss_admin(variable_get('site_name', '')) : '');
$slogan = (omega_theme_get_setting('toggle_slogan') ? filter_xss_admin(variable_get('site_slogan', '')) : '');

need to be

$title = filter_xss_admin(variable_get('site_name', ''));
$slogan = filter_xss_admin(variable_get('site_slogan', ''));
renat’s picture

Patch from #3 helped me. Thank you, gopherspidey.

Flash Gordon’s picture

Yes, the same occured to me. Using Omega-7.x-2.1, HTML Starter Kit. #3's patch did the trick!

dddbbb’s picture

Patch in #3 fixed it for me too.

RmrJmrGrl’s picture

patch fixed it for me as well -- thanks

marcoka’s picture

Assigned: Unassigned » fubhy
marcoka’s picture

Assigned: fubhy » himerus
Cellar Door’s picture

Assigned: himerus » Unassigned
Status: Active » Fixed

7.2.x is no longer being patched but this will be good for the archives if anyone is looking for a solution to this the patch from #3 seems to work well.

Status: Fixed » Closed (fixed)

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