Articles & Notes

wp-Hyphenate 1.05 beta Available

Ver­sion 1.05 beta of wp-​Hyphenate is now avail­able for down­load: http://​king​desk.​com/​p​r​o​j​e​c​t​s​/​w​p​-​h​y​p​h​enate/

Content Emphasis in Balance

Shout­ing for atten­tion just cre­ates noise. Web­site owners and web design­ers can fall into the trap of empha­siz­ing too many mes­sages on the home­page. An effec­tive web­site requires clar­ity of pur­pose and a strong edi­to­r­ial hand.

I was asked to review a web­site for a real estate agent in Ari­zona. Upon vis­it­ing the site, I was imme­di­ately con­fused and over­whelmed. It is not an exag­ger­a­tion to say there were 50 mes­sages on the front page, all scream­ing for atten­tion. The result was a site where every piece of con­tent was minimized.

This is a common mis­take. We have a lot to say, and most of it is impor­tant. As busi­ness owners, we offer many ser­vices; we want to sell them all. But vis­i­tors to your web site do not care. If you over­whelm them with infor­ma­tion, they will not know where to start, they will not expend the energy to figure out where to start, and they will leave your site with malice.

As you con­sider your web­site, these three obser­va­tions will help you iden­tify what changes will increase your website’s abil­ity to meet your busi­ness objectives:

  1. There is a phe­nom­e­non called banner blind­ness. As con­sumers of web con­tent, we train our­selves to avert our eyes from any­thing that looks like an adver­tise­ment. Jakob Nielsen wrote a must-​read arti­cle illus­trat­ing the inef­fec­tive­ness of fancy formatting.
  2. Sup­pose a web­site visitor’s atten­tion could be given a point value of 10. You have these 10 points to dis­trib­ute to dif­fer­ent parts of your site. You should iden­tify your core objec­tives and dis­trib­ute these 10 points in pro­por­tion to their impor­tance. The site design should give promi­nence in scale with the dis­tri­b­u­tion of points. Your front page will be loose con­tent, but what remains will be effective.
  3. Ulti­mately, what is described in the two points above are aspects of a phi­los­o­phy called “user cen­tered design”. You must look at the site from the users per­spec­tive. Users deter­mine whether they think a site will pro­vide for their need within the first 2 sec­onds of their visit. If they don’t see imme­di­ate hope, they quickly click the back button. What is it that your users are look­ing for? This is very dif­fer­ent than what you want to tell your users. Unless you first answer your user’s ques­tions and build cred­i­bil­ity in doing so, they will not care what you have to say.

If you con­sider these points, you will real­ize that they are applica­tive to much more than your web design. They require a rethink­ing of your busi­ness model. Ulti­mately, your web­site is a reflec­tion of your busi­ness. If your web­site is unfo­cused and inef­fec­tive, per­haps it is because the busi­ness it is rep­re­sent­ing needs pur­pose­ful direction.

wp-Hyphenate 1.04 beta Released

wp-​Hyphenate 1.04 beta is now released. This latest ver­sion of the Word­Press hyphen­ation plugin fea­tures sup­port for over 40 lan­guages. Down­load it at http://​king​desk.​com/​p​r​o​j​e​c​t​s​/​w​p​-​h​y​p​h​enate/

Choosing Your <h1>

Choos­ing the proper text to des­ig­nate as your top level head­ing can improve your site’s acces­si­bil­ity and search engine rank­ing. This arti­cle shows you how to prop­erly bal­ance indi­vid­ual page names and over­all site iden­ti­fi­ca­tion.

HTML 4.01 defines 6 levels of head­ings: <h1> - <h6>. These head­ings are hier­ar­chi­cal in nature, indi­cat­ing the impor­tance of their con­tent from most impor­tant to least. It is a matter of best prac­tice to label the title of each page with the <h1> tag.

Seman­ti­cally, it is impor­tant the <h1> tag iden­tify the core essense of the sub­ject page. Such prac­tice is also ben­e­fi­cial to the acces­si­bil­ity and search rank­ing of your site.

Yet in prac­tice, many web design­ers con­sis­tently wrap the site iden­ti­fi­ca­tion (i.e. com­pany name or web­site name) in the <h1> tag, leav­ing the remain­der of the con­tent to share the <h2> - <h6> tags. Now, it is com­pletely appro­pri­ate to wrap the site iden­ti­fi­ca­tion in a <h1> tag on the home­page, but this prac­tice should be resisted on sub­pages. But out of lazi­ness, this is often done.

Let’s remove excuse for the lazy, and pro­vide code to prop­erly use the <h1> tag.

The fol­low­ing HTML and PHP code pro­vides the logic to wrap the site iden­ti­fi­ca­tion in a <h1> tag on the home page, and in a simple <div> tag on the remain­der of pages:


<?php
  function isHomePage() {
    if( ($_SERVER["REQUEST_URI"] == "/") || (substr($_SERVER["REQUEST_URI"], 0, 7) == "/index.") {
      return TRUE;
    }
    return FALSE;
  }
?>

<?php if( isHomePage() ) { ?>
  <h1 id="siteID">Company Name</h1>
<?php } else { ?>
  <div id="siteID">
    <a href="/">Company Name</a>
  </div>
<?php } ?>

Of course, some con­tent man­age­ment sys­tems have built in func­tions that do the job of isHomePage(). For exam­ple, with Word­Press you can use is_page('Home').

The fol­low­ing is an exam­ple of CSS for styling your <h1> and site identification:


h1 {
  clear: both;
  margin: 36px 0 18px;
  font: 54px/54px  "Palatino Linotype", serif;
  text-align: left;
  color: #333;
  text-shadow: #ccc 3px 3px 3px;
  text-transform: capitalize;
  }
h1#siteID, div#siteID {
  clear: both;
  float: left;
  height: 90px;
  width: 400px;
  margin: 0;
  padding: 0;
  text-indent: -9999px;
  background: url('images/logo.png') no-repeat;
  }

With this han­dling of the site iden­ti­fi­ca­tion, you are now free to iden­tify the title of each sub­or­di­nate page as <h1>.

Projectwp-TrackbackPopup 1.0

In the default Word­Press theme (and many others), a track­back link is included in each post’s meta data. Knowl­edge­able users right-​click on the link and copy the link loca­tion. But the vast major­ity of users click the link, only to be redi­rected back to the very page they were on. All they want is to be able to copy the link, but the stan­dard imple­men­ta­tion does not pro­vide the expected result. wp-​TrackbackPopup resolves this issue. It uses unob­tru­sive JavaScript to cause a popup when some­one clicks the track­back link. The popup pro­vides a text ver­sion of the track­back url for easy copy­ing and pasting.

Go to the wp-TrackbackPopup 1.0 project page...

Projectwp-Hyphenate 1.05 beta

Hyphenation is finally avail­able for the web. The addi­tion of hyphen­ation is a sig­nif­i­cant step for­ward for the state of web typog­ra­phy. With it your left aligned text will be less ragged, and your jus­ti­fied text will avoid the ghastly word spac­ing that has pre­vented seri­ous web design­ers from using it.

Go to the wp-Hyphenate 1.05 beta project page...

From the PortfolioHyph-n

At KING­desk, we are com­mit­ted to deliv­er­ing our clients the best pos­si­ble web design. This includes a heavy empha­sis on qual­ity typog­ra­phy. Typog­ra­phy on the web has long lacked auto­matic hyphen­ation of text. Frus­tra­tion ensued as this pre­cluded us from jus­ti­fy­ing text — with­out hyphen­ation, jus­ti­fied text results in unsightly word spac­ing. Not sat­is­fied with the state of typog­ra­phy on the web, we have devel­oped an imple­men­ta­tion of a cut­ting edge hyphen­ation algo­rithm to auto­mat­i­cally hyphen­ate text. After suc­cess­fully using this tech­nol­ogy on sev­eral client’s web sites, we have now cre­ated a web-​based form that other web design­ers can use — free of charge — to improve the state of web typog­ra­phy beyond our own web sites. For acces­si­bil­ity rea­sons, we have also pro­vided a high con­trast ver­sion of the design.

From the PortfolioNew Frontier 21

Dr. Anthony Muham­mad approached us with a web site that woe­fully under­served his edu­ca­tional con­sult­ing busi­ness. The orig­i­nal site did not match the pro­fes­sional rep­u­ta­tion he had so care­fully crafted. Work­ing hand in hand with Dr. Muham­mad, we devel­oped a site with a simple usable inter­face, reflected the urban edu­ca­tional cul­ture he had set out to trans­form, and incor­po­rated an online store.

newfrontier21.com screenshot

Com­pare this to the pre­vi­ous design:

newfrontier21.com old screenshot

5 Principles And Ideas Of Setting Type On The Web

Smash­ing Mag­a­zine: 5 Prin­ci­ples And Ideas Of Set­ting Type On The Web

Optimal Line Height

The theory and the appli­ca­tion of opti­mal line height — called lead­ing in typo­graphic cir­cles — varies greatly in web design. Typog­ra­phy ref­er­ences con­sis­tently put ideal line height at 1.2 ems (a mea­sure of type equiv­a­lent to the the letter height or point size of a typeface).

Yet, pre­mier web design­ers (and typog­ra­phy affec­tion­atos) reg­u­larly set line height to 1.5 ems or more. That is a 33% over­state­ment of the pre­ferred height. This cre­ates a strip­ing of text, rather than the desired grey­ing. When Jason Santa Maria crafted the cur­rent A List Apart design, he set the line height to a whop­ping 1.8 ems. Why is this done?

This is partly explained when one con­sid­ers the line length of the sub­ject designs. The designs require line lengths (or mea­sure) notably longer than those rec­om­mended in typo­graphic ref­er­ences. The increased line length demands increased line height to aide eye track­ing. This does not make for ideal type, but it does make for the best typog­ra­phy for the sub­ject design. James Felici says it well in his book The Com­plete Manual of Typography:

An axiom of com­put­er­ized type is that lead­ing should gen­er­ally be 1.2 times the point size of type. This isn’t a ter­ri­bly useful guide­line, because it’s clear that lead­ing must increase along with the measure.

One con­se­quence of this is other web design­ers look at what the elite are doing, and apply that line height regard­less of line length. This leads to line heights that are unnec­es­sar­ily out of proportion.

So as a gen­eral rule, an opti­mal line length is 60 to 65 char­ac­ters, or 30 ems. At that mea­sure, the ideal line height should be approx­i­mately 1.2 ems. As line length increases, line height should follow pro­por­tion­ately. The body text in the KING­desk design is set to a mea­sure of nearly 27 em and a line height of 1.2 ems.