Steps to reproduce:

  1. Click Appearance > Settings
  2. Turn on display of Site slogan. Save
  3. Click Configuration > Site information
  4. Add a slogan
  5. Go to front page. Note that the browser's title bar reads "Welcome to TITLE | TITLE".

I believe it should read "Welcome to TITLE | SLOGAN".

Relatedly, the Title appears twice in browser's title bar when there's no Slogan. Steps to reproduce:

  1. Click Appearance > Settings
  2. Turn off display of Site slogan. Save
  3. Go to front page. Note that the browser's title bar reads "Welcome to TITLE | TITLE".

I believe it should read "Welcome to TITLE".

Good luck!

CommentFileSizeAuthor
#2 drupal-891076-2.patch686 bytestim.plunkett

Comments

tim.plunkett’s picture

This only happens when a site has no published nodes, and is independent of the theme. I'm leaving this in the bartik queue for now, feel free to move it.

The title is set to "Welcome to @site-name" in node_page_default() in node.module, not sure where the " | @site-name" is getting appended.

I'll post back when/if I figure that part out.

tim.plunkett’s picture

Status: Active » Needs review
StatusFileSize
new686 bytes

If a title is set with drupal_set_title(), template_preprocess_html() appends " | @site-name" to it. If not, it goes on to check for a slogan. This only happens when there are no published nodes.

The problem with changing it is that it also determines the contents of h1.page-title. So if we change it to "Welcome" so that the title becomes "Welcome | @site-name", the page title is just "Welcome".

Status: Needs review » Needs work

The last submitted patch, drupal-891076-2.patch, failed testing.

tim.plunkett’s picture

Oh, I guess that would mean we'd have to change the tests too. I really don't know if this is worth it, but that's not really my call.

Jeff Burnz’s picture

Component: Bartik theme » node.module

Move to right queue.

raghib.suleman’s picture

Issue tags: +Site name and site slogan not showing in drupal

Hi
This is good news, this is the simple way to solve the problem site name and site slogan...

Description *
Go to step by step:

1. Click Configuration (Administer settings.)
2. Page titles
3. Click Frontpage
4. and set your site name and slogan (Delhi Wonders | A Delhi Heritage City).

bobbyaldol’s picture

Status: Needs work » Closed (works as designed)

Works as desired.Using the steps in 'steps to reproduce' in ISSUE SUMMARY it works well and fine..

knalstaaf’s picture

You lost me at "2. Page titles", Raghib.