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

WordPress Trac noreply at wordpress.org
Sat Nov 9 02:46:03 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):

 Replying to [comment:18 chipbennett]:
 > What would you change about
 [http://wpthemetestdata.wordpress.com/2009/10/05/title-should-not-
 overflow-the-content-area/ this unit test], and why?

 We could change the text "Title should not overflow the content area" to a
 more accurate "Long content should have no adverse effects on layout or
 functionality" which leaves it up to interpretation of the designer.

 Or, maybe remove it entirely. Not something theme designers can really
 control—it's up to authors to manually break really long words, like if
 they have a technical website with scientific terms or something.

 Or, we could update the test with a more common long word, or combination
 of long words that's more likely to occur. I don't think themes should
 need to accommodate a word that has a low probability of occurring on a
 page. Something like "Sesquipedalian Loquaciousness" or
 "Antidisestablishmentarianism" a combination of 3-4 long English words
 that are a bit more common would actually be a useful test.

 In real-world practice when something like this happens, a website author
 will most likely manually hyphenate or choose a different set of words.

 '''A note on titles versus comments and sidebars'''

 Themes should try to avoid long overflow content in comments or sidebars
 because they tend to be really narrow.

 Titles are different because what often happens—the negative side
 effect—is that the word is one letter short of fitting and instead gets
 chopped, with one letter on the next line. That's worse than letting that
 letter overflow, in my opinion. See my visual example above.

 Lastly, complaints have come in for past default themes where we tried to
 be too fancy with word breaking and hyphenation outside the comment and
 sidebar areas. [http://wordpress.org/support/topic/twenty-twelve-word-
 break-issues?replies=13 Here's an example],
 [http://wordpress.org/support/topic/strange-word-breaks-in-posts-
 since-11-update?replies=12 here's a second],
 [http://wordpress.org/support/topic/twenty-twelve-hyphenation?replies=17
 here's a third].

 Ultimately as an author I'd prefer to have the control over titles versus
 have a bad break occur.

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


More information about the wp-trac mailing list