I've created a panel page for use as my front page. I don't want the "title" to display at all. There are two settings that seem to relate to this: A) Page Title on the Settings tab and B) Panel TItle on the Layout Settings tab. B overrides A. B has a checkbox for Hide Title?, but if checked it just hides B and the title display reverts to A as though nothing was set for B. If I remove A, all settings for B disappear and the title is set to "No Title".

How do I get no title?

Thanks,
G

Comments

gnosis’s picture

I was able to achieve the desired result by setting Page TItle to a [space]. Probably not the ideal solution, but it gets the job done.

gnosis’s picture

On second glance, setting title to space is no good either. It causes the browser title bar to display " | Sitename".

BrightLoudNoise’s picture

I'm experiencing the same issue, and confirm the odd behaviour.

Anonymous’s picture

This is probably the same as #263372: hiding the title causing "Preview" to be displayed instead of nothing.. Perhaps that issue doesn't describe all the symptoms of the problem, but these issues probably have a common cause.

ksangeelee’s picture

A possible solution is to edit 'panels_page/panels_page.module' and look for the line: -

if (!$display->hide_title) {
drupal_set_title(filter_xss_admin(panels_page_get_title($panel_page, 'page', '')));
}

and add an else clause, making the block: -

if (!$display->hide_title) {
drupal_set_title(filter_xss_admin(panels_page_get_title($panel_page, 'page', '')));
} else {
drupal_set_title('');
}

Perhaps the title was set previously? If so, the logic 'if not hide title' can only ever set or replace a title, it can never remove it.

The solution above seems to make it do what's expected, since the page title is correct, and the panel title is invisible.

sun’s picture

hg2008’s picture

thanks, ksangeelee. That solution worked for me.

mkrakowiak’s picture

This solution does exactly the same thing as gnosis noticed with the space trick: It causes the browser title bar to display " | Sitename".

What you can do, until the fix is in place, is you can use the CSS property display:none (http://www.w3schools.com/css/pr_class_display.asp) to hide it.

EDIT
I forgot I just installed PageTitle module and it took over displaying info in the title bar...
So, the fix works well for me too :)

chrism2671’s picture

If you're working on the frontpage, you can do something like:

.front #content-header .title {
        display: none;
}

worked for me on a Zen based theme.

uomeds’s picture

Version: 5.x-2.0-beta5 » 6.x-3.2

I've got the same problem. I am using Advanced User Profile with Author Pane. I do not need a page title displayed above the user profile panels. However, I do want a title (user name) in the browser window.

Currently, I can only get "| Site Name", not "User Name | Site Name" as desired.

Is there any way to get a title in the browser window but not actually printed on the page? ie. Just take it from a pane?

uomeds’s picture

Status: Closed (duplicate) » Active
merlinofchaos’s picture

Version: 6.x-3.2 » 6.x-2.x-dev
Status: Active » Closed (duplicate)

Drupal does not offer a feature where you can have a browser title without a page title. To achieve this you must do theming in your page preprocess and page.tpl.php

None of this invalidates the original settings on this issue.

uomeds’s picture

Version: 6.x-2.x-dev » 6.x-3.2

Thanks merlin. Figured it out from your reply and a bit of reading here:

http://drupal.org/node/633670#comment-2269460

wjw3072003’s picture

1.copy page.tpl.php to you subtheme/templetes
2. rename page.tpl.php to page--front.tpl.php(forexample)
3.hidden codes from line 123 to 127 (drupal7)
4.then ok

Jérôme Brunel’s picture

Just set your title to when you edit your panel.