SlideShare ist ein Scribd-Unternehmen logo
1 von 27
Downloaden Sie, um offline zu lesen
responsive web design
   with WordPress
Quotes
"it may be an even bigger idea than we
initially realized" - Jeffrey Zeldman

"Responsive Web Design is web design,
done right." - Andy Clarke

"We!re excited about this approach to web
design. It feels …right." - Jeremy Keith
What is it?
On May 25, 2010, Ethan Marcotte wrote an
article introducing Responsive Web Design

"Responsive Web Design uses fluid
grids, flexible images and media queries
to deliver elegant visual experiences"
Okay, what does that mean?
Fluid grids expand and
contract the design to fit
the browser window

Flexible images can be
resized and cropped as
the window gets smaller
or larger

Media queries detect
screen size at certain
points and restructures
content to fit
Why build responsive?
                                    100
76.8 mil in U.S.
own smartphones                      75


Up 11% in May '11                    50

from Feb '11                         25


39.8% use their                       0

browser                             -25
                                          Google Apple   Rim Microsoft Palm
*source comScore Reports May 2011
More reasons to build responsive




                  *source bradfrostweb.com
Need for Responsive Design
More continuity in
user experience

Build once and
works on multiple
devices

Brings forth a
"content first"
approach
Responsive Web Design
With WordPress
Buy the book: Responsive Web Design
Ethan Marcotte - A Book Apart - ebook: $9.00
Design Approach:
Challenge yourself to
imagine fluid layouts

Think modularly

Choose images carefully
knowing that they will need
to expand and be cropped
The Grid:
Most popular is the
960 Grid System by
Nathan Smith

Great tool for designers
as a guide and for
developers with pre-
defined widths
Flexible Grids 1:
Using the Viewport tag enables controlling the
size of the canvas and enables / disables zooming
 Zooming On:
<meta name="viewport" content="width=device-width;
initial-scale=1" />

Zooming Off:
<meta name="viewport" content="width=device-width;
initial-scale=1; minimum-scale=1; maximum-scale=1" />
Flexible Grids 2:
Pixels are changed to percentages to expand
and contract with the viewport
Use the formula:            Result:
Target / Context = Result   566px / 960px = .589583333

Example:                    Percentage:
Design Width: 960px         58.9583333%
Blog Column: 566px
Flexible Grids 3:
Now we have a flexible   CSS:
main blog column that   .main .blog {
can expand and          float: left;
contract                width: 58.9583333%
                        }
Media Queries 1:
The media query is like
                           @media screen and
a test for your browser,
                           (min-width: 1024px) {
first, looking for the        body {
media type, screen and         font-size: 100%;
second, looking at the         }
minimum width. If all is   }
true, execute the CSS
below it
Media Queries 2:
Now using the media       /* Smartphones (portrait
query you can create      and landscape) */
screen width specific
styles for smartphones,   @media only screen
tablets, desktops, etc.   and (min-device-width :
                          320px) and (max-device-
                          width : 480px) {
                            body {
                              font-size: 50%;
                              }
                          }
Fluid Images 1:
To create fluid images and force fixed width
elements to resize proportionately, we can
apply a nice little style


           img, embed, object, video {
             max-width: 100%;
           }
Fluid Images 2:
WordPress automatically adds dimensions to
images when you add them to a post, so how
do we make them fluid?
Use post_thumbnail:
<?php the_post_thumbnail(); ?>
Fluid Images 3:
But wait, post thumbnails DO have
dimensions setup in the functions file

   /* Add theme support for post thumbnails
   (featured images). */

   "   add_theme_support( 'post-thumbnails' );
   "   set_post_thumbnail_size( 200, 200, true );
Fluid Images 4:
 Yes, when you upload an image WordPress
 has default sizes for, thumbnail, medium and
 large, but you can customize them


add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 200, 200, true );
add_image_size( 'single-post-thumbnail', 681, 225, true );
Fluid Images 5:
Adding the code below will automatically
create the new size for you on upload

/* Adding new media image size option */
" if ( function_exists( 'add_image_size' ) ) {
" add_image_size( 'home-banner', 681, 225, true );
}
Fluid Images 6:
The final code in the template

<div class="featured-banner">

<?php if ( has_post_thumbnail() )
{ the_post_thumbnail( 'home-banner' ); } ?>

</div>
Navigation 1:
To be responsive we have
to rethink site structure
and navigation. Dropdown
menus aren't efficient on
the small screen.
Navigation 2:
In WordPress the new menu system is great,
but how do we turn off dropdowns? Use
depth=>'1'
<?php wp_nav_menu( array( 'theme_location' =>
'primary-menu', 'container' => 'false', 'menu_id' =>
'main-nav', 'depth' => '1' ) ); ?>
Navigation 3:
Okay, so now how do I display my sub-pages,
wp_nav doesn't have a child_of parameter?
Add a Walker Class to your functions file.


   <?php wp_nav_menu( array( 'walker' => new
   Custom_Walker_Nav_Sub_Menu() ) ); ?>
Navigation 4:
Now we can easily
modify the nav with
the new menu system
in WordPress and it
displays nicely on a
small screen
Future Of Responsive
Web Design:
Mobile first, adaptive layouts, progressive
enhancement are all part of this

We will be building with the content in the
center and everything else will be peripheral

Teams will have to restructure, content writers
will come in earlier and content from the client
will be required up front
Thank you!

I will have links to this slideshow and more on
www.crowdedsites.com next week

Weitere ähnliche Inhalte

Mehr von Wes Chyrchel

WCSD 2015: Milestones and Delivery. Tough Conversations and Scope Creep
WCSD 2015: Milestones and Delivery. Tough Conversations and Scope CreepWCSD 2015: Milestones and Delivery. Tough Conversations and Scope Creep
WCSD 2015: Milestones and Delivery. Tough Conversations and Scope CreepWes Chyrchel
 
How To Get Great Clients - Alignment First - Expectations Second
How To Get Great Clients - Alignment First - Expectations SecondHow To Get Great Clients - Alignment First - Expectations Second
How To Get Great Clients - Alignment First - Expectations SecondWes Chyrchel
 
How To Sell WordPress
How To Sell WordPressHow To Sell WordPress
How To Sell WordPressWes Chyrchel
 
WordCamp San Diego 2013 - Why Projects Go South
WordCamp San Diego 2013 - Why Projects Go SouthWordCamp San Diego 2013 - Why Projects Go South
WordCamp San Diego 2013 - Why Projects Go SouthWes Chyrchel
 
Responsive widget-design-with-word press
Responsive widget-design-with-word pressResponsive widget-design-with-word press
Responsive widget-design-with-word pressWes Chyrchel
 
BuddyPress Tips: How We Built chekmrk
BuddyPress Tips: How We Built chekmrkBuddyPress Tips: How We Built chekmrk
BuddyPress Tips: How We Built chekmrkWes Chyrchel
 
Strategy for a successful WordPress project
Strategy for a successful WordPress projectStrategy for a successful WordPress project
Strategy for a successful WordPress projectWes Chyrchel
 

Mehr von Wes Chyrchel (7)

WCSD 2015: Milestones and Delivery. Tough Conversations and Scope Creep
WCSD 2015: Milestones and Delivery. Tough Conversations and Scope CreepWCSD 2015: Milestones and Delivery. Tough Conversations and Scope Creep
WCSD 2015: Milestones and Delivery. Tough Conversations and Scope Creep
 
How To Get Great Clients - Alignment First - Expectations Second
How To Get Great Clients - Alignment First - Expectations SecondHow To Get Great Clients - Alignment First - Expectations Second
How To Get Great Clients - Alignment First - Expectations Second
 
How To Sell WordPress
How To Sell WordPressHow To Sell WordPress
How To Sell WordPress
 
WordCamp San Diego 2013 - Why Projects Go South
WordCamp San Diego 2013 - Why Projects Go SouthWordCamp San Diego 2013 - Why Projects Go South
WordCamp San Diego 2013 - Why Projects Go South
 
Responsive widget-design-with-word press
Responsive widget-design-with-word pressResponsive widget-design-with-word press
Responsive widget-design-with-word press
 
BuddyPress Tips: How We Built chekmrk
BuddyPress Tips: How We Built chekmrkBuddyPress Tips: How We Built chekmrk
BuddyPress Tips: How We Built chekmrk
 
Strategy for a successful WordPress project
Strategy for a successful WordPress projectStrategy for a successful WordPress project
Strategy for a successful WordPress project
 

Kürzlich hochgeladen

昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档208367051
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxmapanig881
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一F dds
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girlsssuser7cb4ff
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一Fi sss
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一diploma 1
 
西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造kbdhl05e
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...katerynaivanenko1
 
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`dajasot375
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVAAnastasiya Kudinova
 
Design Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryDesign Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryWilliamVickery6
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一lvtagr7
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Sitegalleryaagency
 
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCRCall In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCRdollysharma2066
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证nhjeo1gg
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书zdzoqco
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIyuj
 

Kürzlich hochgeladen (20)

昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
昆士兰大学毕业证(UQ毕业证)#文凭成绩单#真实留信学历认证永久存档
 
Untitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptxUntitled presedddddddddddddddddntation (1).pptx
Untitled presedddddddddddddddddntation (1).pptx
 
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
办理学位证(SFU证书)西蒙菲莎大学毕业证成绩单原版一比一
 
Call Girls Meghani Nagar 7397865700 Independent Call Girls
Call Girls Meghani Nagar 7397865700  Independent Call GirlsCall Girls Meghani Nagar 7397865700  Independent Call Girls
Call Girls Meghani Nagar 7397865700 Independent Call Girls
 
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
(办理学位证)埃迪斯科文大学毕业证成绩单原版一比一
 
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
办理(USYD毕业证书)澳洲悉尼大学毕业证成绩单原版一比一
 
西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造西北大学毕业证学位证成绩单-怎么样办伪造
西北大学毕业证学位证成绩单-怎么样办伪造
 
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
MT. Marseille an Archipelago. Strategies for Integrating Residential Communit...
 
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
Abu Dhabi Call Girls O58993O4O2 Call Girls in Abu Dhabi`
 
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
PORTAFOLIO   2024_  ANASTASIYA  KUDINOVAPORTAFOLIO   2024_  ANASTASIYA  KUDINOVA
PORTAFOLIO 2024_ ANASTASIYA KUDINOVA
 
Call Girls in Pratap Nagar, 9953056974 Escort Service
Call Girls in Pratap Nagar,  9953056974 Escort ServiceCall Girls in Pratap Nagar,  9953056974 Escort Service
Call Girls in Pratap Nagar, 9953056974 Escort Service
 
Design Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William VickeryDesign Portfolio - 2024 - William Vickery
Design Portfolio - 2024 - William Vickery
 
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full NightCall Girls Aslali 7397865700 Ridhima Hire Me Full Night
Call Girls Aslali 7397865700 Ridhima Hire Me Full Night
 
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
定制(RMIT毕业证书)澳洲墨尔本皇家理工大学毕业证成绩单原版一比一
 
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Okhla Delhi 💯Call Us 🔝8264348440🔝
 
How to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our SiteHow to Be Famous in your Field just visit our Site
How to Be Famous in your Field just visit our Site
 
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCRCall In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
Call In girls Bhikaji Cama Place 🔝 ⇛8377877756 FULL Enjoy Delhi NCR
 
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
在线办理ohio毕业证俄亥俄大学毕业证成绩单留信学历认证
 
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
 
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AIHow to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
 

Responsive Web Design With WordPress

  • 1. responsive web design with WordPress
  • 2. Quotes "it may be an even bigger idea than we initially realized" - Jeffrey Zeldman "Responsive Web Design is web design, done right." - Andy Clarke "We!re excited about this approach to web design. It feels …right." - Jeremy Keith
  • 3. What is it? On May 25, 2010, Ethan Marcotte wrote an article introducing Responsive Web Design "Responsive Web Design uses fluid grids, flexible images and media queries to deliver elegant visual experiences"
  • 4. Okay, what does that mean? Fluid grids expand and contract the design to fit the browser window Flexible images can be resized and cropped as the window gets smaller or larger Media queries detect screen size at certain points and restructures content to fit
  • 5. Why build responsive? 100 76.8 mil in U.S. own smartphones 75 Up 11% in May '11 50 from Feb '11 25 39.8% use their 0 browser -25 Google Apple Rim Microsoft Palm *source comScore Reports May 2011
  • 6. More reasons to build responsive *source bradfrostweb.com
  • 7. Need for Responsive Design More continuity in user experience Build once and works on multiple devices Brings forth a "content first" approach
  • 8. Responsive Web Design With WordPress Buy the book: Responsive Web Design Ethan Marcotte - A Book Apart - ebook: $9.00
  • 9. Design Approach: Challenge yourself to imagine fluid layouts Think modularly Choose images carefully knowing that they will need to expand and be cropped
  • 10. The Grid: Most popular is the 960 Grid System by Nathan Smith Great tool for designers as a guide and for developers with pre- defined widths
  • 11. Flexible Grids 1: Using the Viewport tag enables controlling the size of the canvas and enables / disables zooming Zooming On: <meta name="viewport" content="width=device-width; initial-scale=1" /> Zooming Off: <meta name="viewport" content="width=device-width; initial-scale=1; minimum-scale=1; maximum-scale=1" />
  • 12. Flexible Grids 2: Pixels are changed to percentages to expand and contract with the viewport Use the formula: Result: Target / Context = Result 566px / 960px = .589583333 Example: Percentage: Design Width: 960px 58.9583333% Blog Column: 566px
  • 13. Flexible Grids 3: Now we have a flexible CSS: main blog column that .main .blog { can expand and float: left; contract width: 58.9583333% }
  • 14. Media Queries 1: The media query is like @media screen and a test for your browser, (min-width: 1024px) { first, looking for the body { media type, screen and font-size: 100%; second, looking at the } minimum width. If all is } true, execute the CSS below it
  • 15. Media Queries 2: Now using the media /* Smartphones (portrait query you can create and landscape) */ screen width specific styles for smartphones, @media only screen tablets, desktops, etc. and (min-device-width : 320px) and (max-device- width : 480px) { body { font-size: 50%; } }
  • 16. Fluid Images 1: To create fluid images and force fixed width elements to resize proportionately, we can apply a nice little style img, embed, object, video { max-width: 100%; }
  • 17. Fluid Images 2: WordPress automatically adds dimensions to images when you add them to a post, so how do we make them fluid? Use post_thumbnail: <?php the_post_thumbnail(); ?>
  • 18. Fluid Images 3: But wait, post thumbnails DO have dimensions setup in the functions file /* Add theme support for post thumbnails (featured images). */ " add_theme_support( 'post-thumbnails' ); " set_post_thumbnail_size( 200, 200, true );
  • 19. Fluid Images 4: Yes, when you upload an image WordPress has default sizes for, thumbnail, medium and large, but you can customize them add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 200, 200, true ); add_image_size( 'single-post-thumbnail', 681, 225, true );
  • 20. Fluid Images 5: Adding the code below will automatically create the new size for you on upload /* Adding new media image size option */ " if ( function_exists( 'add_image_size' ) ) { " add_image_size( 'home-banner', 681, 225, true ); }
  • 21. Fluid Images 6: The final code in the template <div class="featured-banner"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'home-banner' ); } ?> </div>
  • 22. Navigation 1: To be responsive we have to rethink site structure and navigation. Dropdown menus aren't efficient on the small screen.
  • 23. Navigation 2: In WordPress the new menu system is great, but how do we turn off dropdowns? Use depth=>'1' <?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => 'false', 'menu_id' => 'main-nav', 'depth' => '1' ) ); ?>
  • 24. Navigation 3: Okay, so now how do I display my sub-pages, wp_nav doesn't have a child_of parameter? Add a Walker Class to your functions file. <?php wp_nav_menu( array( 'walker' => new Custom_Walker_Nav_Sub_Menu() ) ); ?>
  • 25. Navigation 4: Now we can easily modify the nav with the new menu system in WordPress and it displays nicely on a small screen
  • 26. Future Of Responsive Web Design: Mobile first, adaptive layouts, progressive enhancement are all part of this We will be building with the content in the center and everything else will be peripheral Teams will have to restructure, content writers will come in earlier and content from the client will be required up front
  • 27. Thank you! I will have links to this slideshow and more on www.crowdedsites.com next week