1. WORDPRESS FOR MOBILE
USING WORDPRESS TO BUILD
MOBILE-OPTIMISED WEBSITES
Rachel McCollin
WordCamp Portsmouth 2011
rachel@compass-design.co.uk
@rachelmccollin
http://compass-design.co.uk
2. IN THIS SESSION
• why go mobile?
• considerations
• methods and examples
• some code
• resources and links
8. MOBILE THEMES
• Instant • Limitedcontrol over user
experience
• Very quick and easy
• Need to test thoroughly
• Consistencybetween
desktop and mobile • Less individual design
• Browser compatibility • Limited choice at present
Great for site owners who want to focus on content not code
or don't have the necessary time or skills
9. MOBILE THEMES - EXAMPLES
responsive twenty ten
theme by Todd
Halfpenny
http://gingerbreaddesign.co.uk/todd/
10. MOBILE THEMES - EXAMPLES
http://wordpress.org/extend/themes/twentyeleven#
11. MOBILE THEMES - EXAMPLES
Smooci mobile-only
theme
http://wordpress.org/extend/themes/smooci-2
18. MOBILE THEMES - EXAMPLES
http://leonpaternoster.com/wp-themes/
19. MOBILE THEMES - EXAMPLES
http://leonpaternoster.com/wp-themes/
20. PLUGINS
• Working in minutes • One size fits all
• Minimal configuration • Less control
• Cross-platform • Problems with widgets &
media
• No coding required
• Lose branding/design
Great for simple text-focused sites and blogs where content is
more important than design and budget is limited
27. PLUGINS - EXAMPLES
WordPress mobile pack
http://wordpress.org/extend/plugins/wordpress-mobile-pack/
28. PLUGINS - EXAMPLES
BuddyPress mobile
http://buddypress.org/groups/buddypress-mobile/
29. OTHER PLUGINS
Mobilise by mippin - renders your site using their service
http://wordpress.org/extend/plugins/mobilize-by-mippin-
wordpress-plugin/
BAAP mobile version - switcher with configurable themes
http://wordpress.org/extend/plugins/baap-mobile-version/
Wapple architect - delivers a version of your theme to
mobiles - http://wordpress.org/extend/plugins/wapple-
architect/
30. MEDIA QUERIES
• Retain existing design
• Not reliable on all
• Can be templated
platforms (e.g.
• Very flexible Blackberry)
• More resource-intensive
• Canadd or remove
content, images, menus etc.
Great for sites where the design and brand are important and
the user experience is similar to the desktop site.
37. MEDIA QUERIES - CODE
in the <head>: <meta name="viewport" content="width=device-width">
at the end of the stylesheet:
@media screen and (max-width: 480px) { [styles] } - iPhone and Android in portrait & landscape
@media screen and (max-width: 320px) - iPhone and Android in portrait only
@media screen and (min-width: 768px) and (max-width: 1024px) - iPad in portrait and landscape
@media screen and (min-width: 481px) and (max-width: 1024px) and (orientation: landscape) - iPad in
landscape
@media screen and (min-width: 481px) and (max-width: 1024px) and (orientation: portrait) - iPad in portrait
Notes:
• iPad queries can also work on small desktop browser screens
• style wider screens first unless using (min-width)
39. BESPOKE MOBILE SITES
• Mobile-specific experience • Needs a clear strategy
• Make use of APIs • More resource-intensive
• Looks great • one site or two?
• Plugins can make it easier • one theme or two?
Great for sites which will be used very differently by mobile
users and have a user base who are big app users
40. BESPOKE MOBILE SITES -
WpTap mobile detector - spots mobiles & enables the
theme you choose - http://wordpress.org/extend/plugins/
wptap-mobile-detector/
WPTouch Pro - http://www.bravenewcode.com/store/
plugins/wptouch-pro/
WordPress mobile pack - http://wordpress.org/extend/
plugins/wordpress-mobile-pack/
51. IN CONCLUSION
Define:
• Who your audience or target audience is
• What platforms and devices they use
• What you want them to use your site for
• How the user expectations will differ on a mobile
• What your content is
• What budget, resources and time you have
• Which method you will use
• How you will monitor use and conversions
I'm not the expert, just someone who's interested and has been working on this area for a few clients. \nI know there will be people here who know a lot about this topic - please shout if you've got anything to add or I've got anything wrong!\nIf you've got questions, please ask them during the session if you want - you don't have to wait until the end. if discussion goes on too long I may ask people to pause until the end so we can get through all the martial I've prepared. \n