Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Responsive and Mobile Sites
Search
David Kryzaniak
March 08, 2013
Programming
740
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Responsive and Mobile Sites
David Kryzaniak
March 08, 2013
Other Decks in Programming
See All in Programming
contenteditable と日本語入力に向き合う
colorful12
0
200
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
120
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
770
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
970
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
300
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Tell your own story through comics
letsgokoyo
1
1.1k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Done Done
chrislema
187
17k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Building the Perfect Custom Keyboard
takai
2
910
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
520
Transcript
#AppletonWP RESPONSIVE & MOBILE ...AND HOW TO APPLY EACH TO
WORDPRESS By: David Kryzaniak (@dave_kz)
HAI! I'M DAVID... Programming Ninja at Blue Door Consulting I
haz a inter-blag (http://dave.kz/) Twitters: @dave_kz Graduated from UWGB (2012)
ONE PART
ONE PART
TIME CIRCUITS: ON!
THE YEAR WAS 1992... The internets were just starting to
emerge. We used "Flyer-Based Design" 'cuz the internet is just like print. Gotta' watch out for that fold... in the screen.
WOO GEOC <table>'s, <marquee>'s, and <blink> were all the rage.
LIFE WAS GOOD Design for 800x600 monitors. That's like everyone...
Most website could induce seizures thanks to <blink>
BUT THEN... Monitors are getting bigger. Let's start designing for
1024x768 monitors!
BUT THEN... Monitors are getting bigger. Let's start designing for
960px width. That'll cover just about everyone!
JUNE 29, 2007 ...A DATE WHICH WILL LIVE IN INFAMY.
FFFFFFFFUUUUUUUUUUUUUUUUUUUU...
320X356 IS ALL I GET?! My Favicon is bigger than
that!
HOUSTON, WE HAVE A PROBLEM... 61% leave a site if
it isn't mobile-ready 79% search for another site 50% look outside an established relationship source: Google Blog
MOBILE SITES
EXAMPLE OF A MOBILE MarcusTheatres.com m.MarcusTheatres.com
USER AGENT DETECTION MOZILLA/5.0 (WINDOWS NT 6.1; WOW64) APPLEWEBKIT/537.22 (KHTML,
LIKE GECKO) CHROME/25.0.1364.152 SAFARI/537.22 OR $ _ S E R V E R [ ' H T T P _ U S E R _ A G E N T ' ] n a v i g a t o r . u s e r A g e n t
IF A USER AGENT STRING CONTAINS "IOS" IT MUST BE
AN IPHONE SO REDIRECT THEM TO M.CONTOSO.COM
OCTOBER 23, 2012 ...A DATE WHICH WILL LIVE IN INFAMY.
AWW, HE'S A CUTE LITTLE GUY!
WAIT? WHAT'S THE PROBLEM WITH THAT?
OCTOBER 25, 2012 ...A DATE WHICH WILL LIVE IN INFAMY.
http://www.mobilexweb.com/blog/ipad-mini-detection-for-html5-user-agent “It is confirmed that the iPad Mini User Agent
is the same as the iPad 2”
HMM? WHAT NOW?
ENTER: RESPONSIVE DESIGN
MEDIA QUERIES WHAT IF WE SET BREAK POINTS IN OUR
CODE SO THAT OUR CONTENT FITS ON THE SCREEN BETTER?
EXAMPLE OF A MEDIA QUERY Microsoft.com
WHAT'S A MEDIA QUERY? SIMPLE "IF/THEN" LOGIC BASED ON CSS
ATTRIBUTES
PSEUDO CODE: "If the screen size is anything smaller than
or equal to 480 pixels wide, apply these styles"
MOST IMPORTANT STEP . . . < h e a
d > < m e t a n a m e = " v i e w p o r t " c o n t e n t = " w i d t h = d e v i c e - w i d t h " / >
STYLE.CSS: @ m e d i a o n l
y s c r e e n a n d ( m a x - d e v i c e - w i d t h : 4 8 0 p x ) { / * N o r m a l C S S H e r e * / # c o n t e n t { f l o a t : r i g h t ; } }
HEADER.PHP: < l i n k h r e f
= " c s s / m o b i l e . c s s " r e l = " s t y l e s h e e t " t y p e = " t e x t / c s s " m e d i a = " o n l y s c r e e n a n d ( m a x - w i d t h : 4 8 0 p x ) " / >
MEH, MID-SUMMER 2013 ...A DATE WHICH WILL LIVE IN INFAMY.
IPHONE 5S
WAIT? WHAT'S THE PROBLEM WITH THAT?
*NOW WITH RETINA2 AND A NEW GOOFY SCREEN SCREEN SIZE!
RESPONSIVE SUB-CATEGORY ADAPTIVE DESIGN
FLUID GRIDS
GREAT, DAVE... THANKS FOR THE HISTORY LESSON... WHERE'S THE WORDPRESS?!
WP MOBILE SITES:
WP-TOUCH Most Common Easiest to Install (it's just a plugin)
SAD PANDA! YOU ONLY HAVE ONE MOBILE SITE EXAMPLE!
IT'S ALL ABOUT THE BENJAMINS UX, BABY. Don't confuse your
users User Agents are always changing
RESPONSIVE/ADAPTIVE THEMES:
BUT FIRST... CHILD THEMES
HTTP://CODEX.WORDPRESS.ORG/CHILD_THEMES READ IT!
WHAT ARE CHILD THEMES? (SELECTIVELY) OVERLOADING CERTAIN PIECES OF A
PARENT THEME.
REALLY?! I'M JUST CHANGING A FEW THINGS IN THE HEADER.PHP
Anyone remember timthumb.php?
I ALREADY HAVE A THEME THAT I LOVE... 1. Child
Theme 2. JetPack: CSS Editor
None
STARTER THEMES
TWENTY ELEVEN
TWENTY TWELVE
RESPONSIVE
Psh! Pre-made themes. STARTING FROM SCRATCH
TWITTER BOOTSTRAP
HTML5 BOILERPLATE
PROBLEMS & BEST PRACTICES I've got 99 problems, most are
caused by IE...
PROBLEMS & BEST PRACTICES MEDIA QUERIES DON'T ALWAYS WORK IN
IE8 (AND BELOW)
PROBLEMS & BEST PRACTICES THERE IS NO :HOVER IF THERE'S
NO MOUSE
PROBLEMS & BEST PRACTICES WHAT'S THE BEST WAY TO HANDLE
NAVIGATION?
IF I'M STARTING FROM SCRATCH... Design for Desktop First? ("Graceful
Degradation") Design for Mobile First? ("Progressive Enhancement")
MOAR INFORMATION! Responsive Web, Ethan Marcotte Mobile First, Luke Wroblewski
MediaQueri.es
QUESTIONS?