If you go to admin/structure/panels/settings/everywhere and look under "Head title," you get a nice little instruction that says "The head title is the version of the page title that the browser places in the title bar" and lets you check a box to "Include the site name".

This might be a nice feature (although arguably better handled by the Metatag module). However, it does not do what it says. Instead, it applies that setting to the main title of the content - the h1. So if your PE template outputs the page title, you get the site name appended to your node title. This is neither expected nor is it usually desired.

The function theme_panels_everywhere_page() is the culprit. At line 19 of panels_everywhere/theme/theme.inc, it says:

$content->title = theme('head_title');

Trace it through the rendering chain, and that's ultimately what gets used by the template as the $title variable for the page - the h1. Although I have not checked, I'm not sure it even works to change the content of the REAL head title element.

In any event, the help text is wrong, or at least incomplete. And I would advocate that the option be removed entirely.

Comments

gbirch created an issue.

omahm’s picture

I spent the last 20-30 minutes trying to figure out why the site title was appended to the page title.
Is this enabled by default? If it is it's highly annoying and unintuitive.