[wp-trac] [WordPress Trac] #25008: Twenty Fourteen: Add word-wrap to title, avoid overflows

WordPress Trac noreply at wordpress.org
Sat Nov 9 02:45:40 UTC 2013


#25008: Twenty Fourteen: Add word-wrap to title, avoid overflows
-------------------------------------+----------------------
 Reporter:  nofearinc                |       Owner:
     Type:  defect (bug)             |      Status:  closed
 Priority:  low                      |   Milestone:
Component:  Bundled Theme            |     Version:  trunk
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  has-patch needs-testing  |
-------------------------------------+----------------------

Comment (by lancewillett):

 Happy to explain more. It's been hashed out a bit before, but I can sum it
 up here.

 Replying to [comment:18 chipbennett]:
 > Replying to [comment:17 lancewillett]:
 > > We should change the guidelines, probably.
 >
 > On what grounds?

 1. Too much of an edge case
 2. Titles aren't the reason for this rule in the first place
 3. Long words now run the risk of creating an uglier result than
 "overflowing the content"
 4. We've learned from past default themes that titles shouldn't have
 automatic breaks

 What are the odds a website will have that long of a word in the title?
 Close to 0.

 What are the odds it'll have a long URL that someone pastes into a widget
 or comment instead of using an anchor element? Very high.

 I believe this Unit Test came about because of long URLs and not because
 of normal title words.

 It's a common practice with long URLs in widgets and comments because they
 can be very long and have no break characters (word breaks, hyphens,
 punctuation, etc).

 Titles are a bit different in that a break at the wrong place is less
 desirable than an overlap. Here's a visual example with a more common
 "really long" word, Antidisestablishmentarianism.

 [[Image(https://i.cloudup.com/03mBIrXUkB.png)]]

 The first result is much more desirable than the second.

 Additionally, it's a design principle to have beautiful titles. Bringhurst
 (world-renowned expert on typography) says in his authoritative work ''The
 Elements of Typographical Style'', "make the title of the page a symbol of
 dignity and presence of the text." In my interpretation of this design
 principle, forcing breaking for titles instead of letting the author
 decide to manually break is an ugly solution, and it adversely affects the
 entire design.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25008#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list