Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Responsive Design with WordPress

Joe Casabona
October 18, 2014

Responsive Design with WordPress

I will go over some of the core content from my book, Responsive Design with WordPress, which teaches you how to leverage WordPress to get the most out of responsive design, implement best practices, automate important processes, and make your life easier overall. I’ve updated the talk to include stuff for WordPress 4.0!

See the talk here: http://wordpress.tv/2014/11/22/joe-casabona-responsive-design-with-wordpress-2/

Joe Casabona

October 18, 2014
Tweet

More Decks by Joe Casabona

Other Decks in Design

Transcript

  1. 3

  2. Responsive Web Design: The idea that your website will automatically

    adapt to the device it's being viewed on. 4
  3. How? 6 ❖ EM-Based Breakpoints ❖ Breakpoints based 
 on

    Content ❖ Consider 
 Connection Speeds
  4. Navigation 17 ❖ Do Nothing ❖ Hide n' Cry ❖

    Jump to ❖ Select Box ❖ Responsive Nav ❖ Off-Canvas
  5. 18 <nav id=”main”> <?php if(!ISMOBILE){
 wp_nav_menu( array('menu' => ‘Main', 'container_id'

    => 'top-menu')); }else{ echo '<a href=”#footernav”>Jump to Nav</ a>'; } ?> </nav>
  6. 22 <picture> <!--[if IE 9]><video style="display: none;"><! [endif]--> <source srcset="examples/images/extralarge.jpg"

    media="(min-width: 1000px)"> <source srcset="examples/images/large.jpg" media="(min-width: 800px)"> <!--[if IE 9]></video><![endif]--> <img srcset="examples/images/medium.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia"> </picture>
  7. Updating Plugin 23 ❖ Replace Featured Images ❖ Check for

    <picture> element first, fallback to picturefill.js
  8. Helpful Updates to Core 25 ❖ HTML 5 Elements (figure,

    figcaption) ❖ add_theme_support( 'html5', array( 'gallery', 'caption' ) ); ❖ Better Media Embeds (consider for themes)