Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Responsive and Mobile Sites
Search
David Kryzaniak
March 08, 2013
Programming
3
710
Responsive and Mobile Sites
David Kryzaniak
March 08, 2013
Tweet
Share
Other Decks in Programming
See All in Programming
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
as(型アサーション)を書く前にできること
marokanatani
10
2.7k
Outline View in SwiftUI
1024jp
1
330
Amazon Bedrock Agentsを用いてアプリ開発してみた!
har1101
0
340
CSC509 Lecture 13
javiergs
PRO
0
110
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
flutterkaigi_2024.pdf
kyoheig3
0
140
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
620
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.2k
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
KATA
mclloyd
29
14k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
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?