A summary of all the ways you can get your WordPress site ready for the mobile Web. I’ll cover online services that create a mobile version of your site, special WordPress themes and plugins, regular-mobile ready WordPress themes, and more. I’ll talk about how to target specific devices, what to avoid and what’s best for SEO. I’ll also show you how to build a mobile-ready style sheet, with full code and a free business-card theme download.
The first part of the talk will cover easy options for everyone, but the second part is best suited to those with knowledge of HTML/CSS, and WordPress themes.
About Shannon
Shannon Smith is the founder of Café Noir Design a boutique Montreal web design company specializing in bilingual web design. She supports web standards, semantic markup, microformats, open source products, and sustainable business practices. Shannon works with a number of PHP/MySQL content management systems to create clean, minimalist designs, that adhere to W3C standards. She holds graduate degrees in journalism and psychology. Also a foodie and mother of three. Follow @cafenoirdesign on Twitter.
5. Mobile Browsing
✤ 5% of all Web browsing from smartphones and tablets.
✤ In the U.S. 8.2% of all browsing takes place on mobile devices.
✤ 2.9% of U.S. Web browsing comes on the iPhone, 2.6% on Android
devices, and 2.1% on the iPad with BlackBerry next at 0.57%.
✤ (Net Application)
6. Share of Canadian Non-Computer
Device Traffic - May 2011
iPad
iPod Touch Android Tablet
15% Other tablet
iPad
34% iPhone
Android Phone
Android Phone
8% Other Smart Phone
Feature Phone
iPod Touch
iPhone Other
35%
Source: comScore Device Essentials
http://bit.ly/mJVyy5
17. How are we serving this?
✤ Server-side methods & the UA string
✤ Client-side methods & media queries
✤ Measuring screen size with javascript
http://css-tricks.com/snippets/javascript/redirect-mobile-devices/
✤ PHP function to detect mobile user agents & browsers
http://detectmobilebrowsers.mobi/
18. Serving with WordPress
✤ Theme Switch plugin
http://digwp.com/2009/12/redirect-
mobile-users-to-mobile-theme/
✤ Built in conditional tags
<?php if ( $is_iphone ) {?>
<?php include( TEMPLATEPATH . '/mobile/
single.php' ); ?>
<?php } else { ?>
// entire contents of your regular single.php
template
<?php } ?>
19. What needs to change
✤ Dimensions
✤ Bandwidth
✤ Font-size
✤ Features
✤ Floated elements
✤ Mouseover states
✤ Flash
24. Images
✤ Double image dimensions, then resize
✤ Individual component caching: iOS 3.x will only cache HTML pages
under 25k , iOS 4 102.4 kb per item
✤ Total component caching: Android and iOS 4 set limit at 2MB
✤ gzip has no effect on cache-ability on any device
✤ http://www.yuiblog.com/blog/2010/06/28/mobile-browser-cache-limits/
31. Fancy fonts
✤ SVG and fancy fonts
http://www.fontsquirrel.com/
✤ Other font-face generator tools
✤ Licensing
✤ Google font API
✤ MIME type for SVG to "image/
svg+xml" in the server settings
38. Hide Content
✤ Why hide content?
✤ What to hide?
✤ “no-mobile” and “mobile-
only” tags
✤ “display: none;” is bad for
SEO
✤ Another way to hide content
✤ Skip to content links
39. Add Content
✤ Clickable Phone Numbers with
class="phone-link"
✤ Special Input Types with HTML5
type="tel"
✤
type="email"
type="url"
type="number"
type="range"
type="search"
type="date"
the is_iphone conditional seems to only return true for iPhone and Android users. Palm and BlackBerry users appear to be left in the dark. \n
Links to fb and twitter\n
http://www.opera.com/mobile/demo/\n
\n
\n
\n
The component cache, or object cache, stores individual files. HTML, CSS, JavaScript, and images all go into the component cache. Whenever it needs one of these components, the browser first checks the cache before making a network request.\nThe page cache, also known as the back/forward cache, stores an entire page and all of its components, as well as their current state. When you use the back or forward button, the browser will load the page from the page cache if possible.\n