Why does the browser titlebar show my site name and not the page name?

August 18, 2007

Okay maybe you know this, but I just figured it out. Someone wrote to me and asked why the site name kept showing in the title bar. Well here’s the answer. On every page of a template, there’s a special text box that’s marked as the “title” box. If you were to look in the XML, you would find this text box labled exactly as that, sf:name=”Title”. I have that text box in the headers of my templates and it’s intended to house your site name. For some reason, Apple decided to use that as the text for the browser title bar though i.e. the page title. Now most people use that to type their site name which stays consistent from page to page. Not sure I like Apple’s implementation, but that answers that question. They assume you’re typing the page names in there. If you want your browser title bar to read something specific, use that text box to do it and make a new one for your site name :)



About This Entry

FAQ

Aerolite Silver for iWeb 2.0 Now Available As BETA
Aerolite Silver for iWeb 2.0 BETA Now Includes Dark Pages


 
  • This is what I was looking for in the new Lightside theme - but I cannot figure out how to apply the “Title” to a text box in order to make this happen. I keep looking to apply a style (similar to using Pages) - but where is the Title style for the theme?

  • You can’t. You have to use the one on the page that’s already provided for you so don’t delete it or use it for anything else.

    Normally the application would provide a place in the inspector to specify what you want the browser title bar to say, but iWeb doesn’t do that yet. It relies on the use of that special text box but there’s no way to know it’s special at all. Design oversight? I don’t know, but that’s the way it is for now.

  • Ok, now that I discovered the text box that actually contains that title - how I can change the font/size/color? I tried to do it but when it publishes, it is HUGE still… I opened the index file inside the Lightside theme and I do not see any code (yeah, like I would know what it is LOL) that refers to the American Typewriter font size/color.

  • Well, where are you trying to change the size? You don’t have to go into the template XML to do that. Just use the Font Inspector:

    Command T

  • Yes, I did user the Font Inspector and when it was published it changed back to HUGE letters! I also tried to hide it at 0% opacity - still didnt. It would appear that the css is set and it overrides anything I do within the Inspector!

    So, I need to change that Title to a smaller font. I also need to change the default font throughout the theme from American Typewriter to something else (my current client does not like it - but I do!!). I would hate to do this all manually for each of the dozen pages on the site so far….

  • Hum… this sounds very much like the bug in iWeb that won’t change the blog summary text… I don’t know when that bug was introduced, but what you’re describing sounds just like it. It happens in the Apple themes as well.

    That’s getting off topic for this entry however so ping me via email if you have other questions.