HOME
          
LATEST STORY
A mixed bag on apps: What The New York Times learned with NYT Opinion and NYT Now
ABOUT                    SUBSCRIBE
Aug. 29, 2013, 12:32 p.m.

If you use WordPress, you too can have tweetable sentences like in that New York Times SNL story

This plugin lets you pre-select certain tweetworthy sentences in your posts .

You may have noticed a few days ago that The New York Times continued its admirable attempts to innovate in how news site’s article pages should look. In this piece on auditioning for Saturday Night Live, Times staff highlighted a number of quotes from the piece and made them individually tweetable. It looked like this:

nytimes-tweetable-text-snl

(Andrew Beaujon had a good writeup at Poynter.)

I thought that was a nifty idea and wanted to see if I could make it work here at Nieman Lab. Turns out I could! You can see the first couple examples if you scroll down a bit in Caroline’s just-posted story on Localore:

niemanlab-tweetable-text

Now you can do the same on your WordPress-based site.

Most of the work here is done by a year-old WordPress plugin called Tweetable Text, written by Salim Virani. (You can see it in effect on his site.) It does the job, but there were a few things I wanted to change: improving how the highlighted text and hover buttons are displayed; avoiding its use of Twitter’s tweet button code; and allowing the text-to-be-tweeted to be different from the exact text that is highlighted in the story. So I made those and a few other small changes in Salim’s code; you can check out my new version of the WordPress plugin right here.

How to use it

— Download this file; unpack it, and upload tweetable-text.php to your WordPress plugins directory. Activate the plugin in your WordPress interface.

— Make sure you’re using Font Awesome, the awesome icon font, which is required to generate the little Twitter bird at phrase’s end. You can do that by simply adding

<link href="//netdna.bootstrapcdn.com/font-awesome/3.1.1/css/font-awesome.css" rel="stylesheet">

to your site’s <head>. (If you don’t want to use Font Awesome, you can either delete the &thinsp;<i class='icon-twitter' style='color: #ed2e24;'></i> on line 36 of the plugin — or replace it with a call to a Twitter-bird image. Or just change the layout however you’d like!)

— Then, in any WordPress post, if you want to make a sentence or phrase tweetable, wrap it in [tweetable] and [/tweetable]. So for example, the paragraph pictured above looks like this on the backend:

Schardt says that [tweetable]finding creative journalists with an awareness of what technologies are available to them is half the battle.[/tweetable] The advancements themselves outpace the average newsroom’s awareness and ability, but funding continues to be overwhelmingly aimed at furthering these platforms — while journalists struggle to keep up.

— If you want the tweet text to be something other than what’s literally between those [tweetable] tags, add an alt parameter like this:

Schardt says that [tweetable alt="This is actually the text that will show up in the tweet."]finding creative journalists with an awareness of what technologies are available to them is half the battle.[/tweetable] The advancements themselves outpace the average newsroom’s awareness and ability, but funding continues to be overwhelmingly aimed at furthering these platforms — while journalists struggle to keep up.

— If you want to add hashtags to the tweet, you can also add a hashtag parameter:

Schardt says that [tweetable hashtag="#journalism #publicmedia"]finding creative journalists with an awareness of what technologies are available to them is half the battle.[/tweetable] The advancements themselves outpace the average newsroom’s awareness and ability, but funding continues to be overwhelmingly aimed at furthering these platforms — while journalists struggle to keep up.

(You can use alt and hashtag together if you want. Or you can just include your hashtags within your alt text, if you’d like.)

My instinct is that this is a tool to be used sparingly; littering your stories with calls-to-tweet is likely to have the same impact as throwing 80 social sharing buttons on a page: annoying your readers. But I think I’ll be trying this out a bit — specifically on stories with great quotes that are just begging to be shared. (And by all means, make my code better! Would love to hear how you’re using it or how it could be made better.)

POSTED     Aug. 29, 2013, 12:32 p.m.
SHARE THIS STORY
   
Show comments  
Show tags
 
Join the 15,000 who get the freshest future-of-journalism news in our daily email.
A mixed bag on apps: What The New York Times learned with NYT Opinion and NYT Now
The two apps were part of the paper’s plan to increase digital subscribers through smaller, targeted offerings. Now, with staff cutbacks on the way, one app is being shuttered and the other is being adjusted.
The newsonomics of new cutbacks at The New York Times
The Times found success with its first round of paywalls, disappointment with its second. Is it hitting a paid-content ceiling?
With limited time to revamp WNYC’s Schoolbook, John Keefe decided to take his team on the road
The new Schoolbook will have targeted emails, major content partnerships, three languages, and more — and building it took just seven days.
What to read next
751
tweets
Wearables could make the “glance” a new subatomic unit of news
“The audience wants to go faster. This can’t be solved with responsive design; it demands an original approach, certainly at the start.”
677Designer or journalist: Who shapes the news you read in your favorite apps?
A new study looks at how engineers and designers from companies like Storify, Zite, and Google News see their work as similar — and different — from traditional journalism.
596Ken Doctor: Guardian Space & Guardian Membership, playing the physical/digital continuum
The Guardian is making its biggest bet on memberships and events by renovating a 30,000 square foot space to host live activities in the heart of London.
These stories are our most popular on Twitter over the past 30 days.
See all our most recent pieces ➚
Encyclo is our encyclopedia of the future of news, chronicling the key players in journalism’s evolution.
Here are a few of the entries you’ll find in Encyclo.   Get the full Encyclo ➚
The Economist
PubliCola
Zonie Report
CBS News
Politico
The Christian Science Monitor
International Consortium of Investigative Journalists
Sacramento Press
Bayosphere
The Tyee
Patch
National Journal