Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Mobile Web Development: Beginner's Guide

You're reading from   WordPress Mobile Web Development: Beginner's Guide Make your WordPress website mobile-friendly and get to grips with the two hottest trends in web design—Mobile and WordPress with this book and ebook.

Arrow left icon
Product type Paperback
Published in Aug 2012
Publisher Packt
ISBN-13 9781849515726
Length 332 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
RACHEL MCCOLLIN RACHEL MCCOLLIN
Author Profile Icon RACHEL MCCOLLIN
RACHEL MCCOLLIN
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

WordPress Mobile Web Development Beginner's Guide
Credits
About the Author
About the Reviewers
Acknowledgement
1. www.PacktPub.com
2. Preface
1. Using Plugins to Make Your Site Mobile-friendly FREE CHAPTER 2. Using Responsive Themes 3. Setting up Media Queries 4. Adjusting the Layout 5. Working with Text and Navigation 6. Optimizing Images and Video 7. Sending Different Content to Different Devices 8. Creating a Web App Interface 9. Adding Web App Functionality 10. Testing and Updating your Mobile Site Pop quiz—Answers

Time for action—tweaking the content and sidebar layout for phones in landscape mode


Let's start by seeing what effect our CSS for tablets has had on our full home page on 480px-wide screens, for example phones in landscape orientation, as shown in the following screenshot:

I don't know about you, but I think that looks pretty good. The Search widget actually looks better at this width, because the button drops below the input box, filling some of that empty space. The map is small, but remember that people viewing the site on a smartphone will be able to tap on that map and it will take them to the location page or to the Maps application on their phone.

The only niggle is the fact that the Search button is right up against the input box above it, and could do with some breathing room. So let's write the CSS to make that happen. Perform the following steps to do so:

  1. 1. First, we will find the media query for this screen width as follows:

    /*smartphones in landscape mode*/
    @media screen and ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image