WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9288 closed defect (bug) (fixed)

When using a static Page as the front page of the site, both front page and blog listing show same HTML title

Reported by: markjaquith Owned by:
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7
Component: Themes Keywords: has-patch tested commit dev-feedback
Focuses: Cc:

Description

If you set a static Page as the front page of your site, both the front page and the blog listing page will show only your blog's title in the HTML <title /> element.

That seems wrong to me. I'd think that the blog listing would use its page title... "news" or "headlines" or "blog" or whatever it is.

Attachments (1)

9288.1.diff (553 bytes) - added by sivel 6 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 @Viper007Bond6 years ago

-1

You're viewing the homepage (which just happens to be a Page), as such a Page title shouldn't be displayed. A plugin or some code in the theme could easily accomplish what you're looking for.

Recommend closing as wontfix.

comment:2 follow-up: @DD326 years ago

You're viewing the homepage

Correct, But the homepage also has a name, Not all homepages are a homepage, Some are the News page, some are something else, etc..

comment:3 in reply to: ↑ 2 @Viper007Bond6 years ago

Replying to DD32:

Correct, But the homepage also has a name, Not all homepages are a homepage, Some are the News page, some are something else, etc..

Perhaps, but that's where a theme mod or plugin should come into play. A is_front_page() stuck in the <title> or whatever. Infact one of my sites is like that.

However when you're at http://yoursite.com/, I think the majority of people expect the <title> to be what they've entered at Settings -> General, regardless of what is shown there (latest posts or a welcome message).

comment:4 @Viper007Bond6 years ago

Just noticed markjaquith opened this ticket and not some random noob. I retract my wontfix recommendation, but I still think the current implementation is fine.

comment:5 @sivel6 years ago

+1

I think the default behavior should be to display the page name for all pages except the front page, including the posts page, unless of course the posts page is the front page.

comment:6 @sivel6 years ago

  • Cc matt@… added

@sivel6 years ago

comment:7 @sivel6 years ago

  • Keywords has-patch dev-feedback added

comment:8 @Denis-de-Bernardy6 years ago

  • Keywords tested commit added

+1 to the current patch.

comment:9 @ryan6 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11395]) Fix display of titles for front pages. Props sivel. fixes #9288

Note: See TracTickets for help on using tickets.