Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
gopherspidey CreditAttribution: gopherspidey commentedI 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.
Comment #2
himerus CreditAttribution: himerus commentedCan 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.
Comment #3
gopherspidey CreditAttribution: gopherspidey commentedIn 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:
need to be
Comment #4
renat CreditAttribution: renat commentedPatch from #3 helped me. Thank you, gopherspidey.
Comment #5
Flash Gordon CreditAttribution: Flash Gordon commentedYes, the same occured to me. Using Omega-7.x-2.1, HTML Starter Kit. #3's patch did the trick!
Comment #6
dddbbb CreditAttribution: dddbbb commentedPatch in #3 fixed it for me too.
Comment #7
RmrJmrGrl CreditAttribution: RmrJmrGrl commentedpatch fixed it for me as well -- thanks
Comment #8
marcoka CreditAttribution: marcoka commentedComment #9
marcoka CreditAttribution: marcoka commentedComment #10
Cellar Door CreditAttribution: Cellar Door commented7.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.