Header moves when a a page title is not present

tdh - October 9, 2007 - 21:18
Project:Sky
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The header moves up when a page title is not present. For example, when I get an error message. (Please see attached screenshot).

AttachmentSize
header_moves.jpg46.11 KB

#1

Jacine - October 10, 2007 - 03:19
Status:active» active (needs more info)

Hi tdh,

I cannot reproduce this on the demo site. A page not found error results with a page title of "Page not found" and a login error message such as the one you posted returns a "User Account" page title, or the title of the page you tried to log in from. See attached screenshot.

This is the desired behavior, as there should always be a title for each page, except if you have no slogan and you're on the home page. If there is no page title set, which should never be the case, it will not have anything to print, which would cause the difference in space. Since I can't reproduce the error on the demo site, and you've obviously modified the theme, I'd have to think this is a result of something you've changed.

If I'm wrong, let me know how to reproduce the error and I'll look at it again.

Thanks :)

AttachmentSize
error_1.gif46.71 KB

#2

tdh - October 10, 2007 - 14:17

I get the problem when my home page is set to the default (/node) and then get the error message (by clicking login with it blank or incorrect credentials). If I change my home page to a user created page, then it does display the page title and works fine. But at the default /node it does not display a page title at the top.

Thanks,

Todd

AttachmentSize
site_config.jpg98.54 KB

#3

Jacine - October 10, 2007 - 18:46

Do you have "site slogan" enabled in the theme config settings?

PS - "node" should not have a trailing slash on the site configuration page.

#4

tdh - October 10, 2007 - 18:54

Yes the site slogan is enabled in the theme settings. Removing the trailing slash after node took care of the problem.

You are great!

Thanks,

Todd

#5

Jacine - October 10, 2007 - 18:58
Status:active (needs more info)» closed

Oh good, I'm glad it's working... You're welcome :)

 
 

Drupal is a registered trademark of Dries Buytaert.