Start learning with our library of video tutorials taught by experts. Get started

WordPress: Building Responsive Themes

Thinking responsively: Designing for many different screen sizes


From:

WordPress: Building Responsive Themes

with Morten Rand-Hendriksen

Video: Thinking responsively: Designing for many different screen sizes

Designing responsive themes is surprisingly challenging the first time you try, but it does get easier once you get used to thinking in responsive terms. I think this has a lot to do with how we are used to design web sites. In the past, the only constraint we needed to think about was how wide the smallest computer screen was going to be, and generally, if you landed somewhere around the 960 mark, you were fine. So we were safe in designing sites that were always fixed width to 960 pixels, and they are also very easy to design.
Expand all | Collapse all
  1. 4m 5s
    1. Welcome
      1m 4s
    2. Using the exercise files
      1m 27s
    3. What you should know before watching this course
      1m 34s
  2. 8m 36s
    1. What is responsive design?
      4m 16s
    2. The different faces of WordPress on mobile
      1m 55s
    3. Exploring the finished Anaximander theme
      2m 25s
  3. 9m 38s
    1. Getting and installing the Anaximander theme
      1m 53s
    2. Configuring basic theme options
      7m 45s
  4. 23m 51s
    1. Deciding what screen sizes to design for
      4m 11s
    2. Thinking responsively: Designing for many different screen sizes
      6m 23s
    3. Visualizing content realignment for better markup
      4m 35s
    4. Designing menus
      4m 52s
    5. Adding responsive images and videos
      3m 50s
  5. 26m 8s
    1. What are media queries and how do they work?
      4m 18s
    2. Exploring CSS3, progressive enhancement, and graceful degradation
      3m 27s
    3. Understanding best practices for media queries
      3m 57s
    4. Creating a responsive frame
      5m 12s
    5. Customizing media queries with the Chrome Developer Tools
      5m 28s
    6. Taking device width into account
      3m 46s
  6. 11m 1s
    1. Resizing the site title and the description
      8m 22s
    2. Adding media queries to the header
      2m 39s
  7. 11m 22s
    1. Making the menu responsive
      3m 35s
    2. Creating a different menu design for small screens
      7m 47s
  8. 19m 22s
    1. Making a responsive single-post layout
      6m 11s
    2. Making images responsive
      4m 37s
    3. Making videos responsive by including FitVids
      8m 34s
  9. 7m 45s
    1. Making the sidebar responsive
      5m 10s
    2. Hiding sidebars on mobile
      2m 35s
  10. 7m 28s
    1. Dealing with footer widgets
      5m 11s
    2. Adding navigation links that return to the top of the page
      2m 17s
  11. 12m 54s
    1. Using FlexSlider to create a responsive slider
      6m 2s
    2. Creating a loop to show sticky posts in a featured slider
      6m 52s
  12. 24m 37s
    1. What is jQuery Masonry?
      3m 41s
    2. Installing jQuery Masonry
      4m 45s
    3. Configuring the index page with Masonry
      7m 0s
    4. Using CSS to finalize the Masonry layout
      6m 17s
    5. Adding media queries to the Masonry index
      2m 54s
  13. 9m 11s
    1. Exploring hidden features of the Anaximander theme
      5m 51s
    2. Where to go from here
      3m 20s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
Please wait...
WordPress: Building Responsive Themes
2h 55m Intermediate Aug 17, 2012

Viewers: in countries Watching now:

The many ways visitors access web sites, via mobile devices, tablets, and desktops, now requires sites to incorporate responsive design elements that adapt to different screen sizes and browsers. In this course, Morten Rand-Hendriksen demonstrates design strategies, best practices, and actual code examples for creating a responsive web site. The course covers layout, navigation, responsive video embedding, and content sliders. The final chapter shows how to create an index page with jQuery Masonry, a jQuery plugin that helps you create dynamic grid layouts.

Topics include:
  • What is responsive design?
  • Installing the Anaximander example theme
  • Deciding what screen sizes to target
  • Designing menus
  • Adding responsive images and video
  • Using CSS media queries to apply different styles
  • Handling sidebars on mobile displays
  • Dealing with footer widgets
  • Installing jQuery Masonry
Subjects:
Web CMS User Experience Blogs Responsive Design
Software:
WordPress
Author:
Morten Rand-Hendriksen

Thinking responsively: Designing for many different screen sizes

Designing responsive themes is surprisingly challenging the first time you try, but it does get easier once you get used to thinking in responsive terms. I think this has a lot to do with how we are used to design web sites. In the past, the only constraint we needed to think about was how wide the smallest computer screen was going to be, and generally, if you landed somewhere around the 960 mark, you were fine. So we were safe in designing sites that were always fixed width to 960 pixels, and they are also very easy to design.

But now that we have all these different sizes of screens, we have to rejig how we think about the design approach to get to where we need to be. What you're seeing here is the original design concept for the Anaximander theme. This is what I made in Photoshop. And what I did was I started with the smallest possible screen, the cell phone screen, and then I decided to scale it up from there. There are many reasons why you want to go this route, starting with mobile first, but the primary one is that by starting with mobile first, you end up paring down the site to only what really matters.

You'll notice that there are no sidebars here. There are no ads. There's no extra clutter. All you see is the main information. This layout is the front page and as you can see, it has an index where each of the stories are contained inside a box. So you see here is one box, you have a Read More button, and then you have the Next Box. And in each story you start off with an image and then the text. I did this because I know from experience that on index pages people really like to click on the images, so I want the image to be upfront.

When you go to the single view of the story, you see that the layout is slightly different. There's a larger header text and the meta-content and the header text appears before the featured image, so the featured image is down here, along with the context. Once I had a clear idea of what the site was going to look like on a mobile device, I could scale my design up to fit larger screens. So what I did was I took this design and I simply changed the width of the total area.

What I ended up with, after some work, was this. This, again, is the index page, and as you can see, one of the things I did was move the menu from under here, to up here on the right, simply to fill out the space, so it didn't look so empty. I also included a masonry layout for the index page so that each of the stories is stacking next to one another. That way I'd have room for more stories on a single page than you would if you stack them horizontally. And I would also solve that problem of the sidebar, because normally you would fill in the space with a sidebar because otherwise, your text lines will be too long.

But I didn't want to have a sidebar, because then I'd have to hide it for the mobile side, so I ended up replacing the sidebar with the masonry layout instead. When you go to the single view, you see that I solved the same problem by moving the title and meta information to the left and then leaving the content itself on the right. This isn't the design I really came up with. I've seen this a lot in books that are printed on large pages. To make sure that the single lines of text aren't too long and have too many words in them, the layout person and the publisher has chosen to leave a very large gutter on either the left or the right side, and then they often put something like the title for the chapter in that gutter to take up the space.

This allows me to provide both the title and all the meta information and the content on the same line and takes the way they need to scroll immediately after landing on the page. Once I have these two different layouts-- the small screen and the large screen-- it was very easy to figure out what I was going to do with the middle cases, the in-between screens. Because now that I have a style guide to go with which says the title either goes on the left or on the top, I could simply say that once the screen gets too small to fit these side by side, I'll simply shift all these information on the top, and it will look just like the phone.

And this is what it ended up looking like. This is the live version of Anaximander running on my blog. And as you can see, it looks almost identical to my mockup. That's not because the mockup is a screen grab of what you're seeing here, but because I was able to match the site almost perfectly to the mockups, by using the mockups as a blueprint. This is the front page with the index, and I can see here we have the masonry index with the Read More buttons on the bottom, and the stories line up next to one another so we get lots of stories on a very small page.

And if I go to a single post, you see that here we have the title on the left and the content on the right. And as you can see, just when you land on the page, you can already start reading or ingesting what's here without having to scroll much. And if we scale this window down, you'll see that once we reach that point where the content is bigger than the window, instead of flexibly altering the size, I decided a new breakpoint, so it jumps into a new breakpoint.

And then when we scale pass that breakpoint, the content is realigned and we now have the mobile layout, although it's much bigger. So we can continue scaling it down until we hit that mobile point. The result of this preparation where I first design for mobile, then for the full-size screen, and then figured out how to handle all the content is that I now have a site that's consistently attractive and easy to ingest.

No matter what screen size people use or what window size they use or what device they use, they'll always get straight to the content and get what they're looking for. Designing responsive themes has more to do with how you think than how you design. Once you get into the habit of thinking content first and designing for the smaller screens first and taking away all the extra clutter you would normally put into your site, you end up with a much better layout that's easier to ingest for the people who visit your site, and that communicates the message better.

There are currently no FAQs about WordPress: Building Responsive Themes.

Share a link to this course
Please wait... Please wait...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed WordPress: Building Responsive Themes.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Welcome to the redesigned course page.

We’ve moved some things around, and now you can



Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked