- WordPress Mobile Web Development:Beginner's Guide
- Rachel McCollin
- 460字
- 2021-08-13 18:06:13
Time for action—identifying how your site should work on mobiles
If you're planning on making your own mobile-friendly site, grab a paper and pen, and make a note of your answers to the following questions:
- Which mobile devices are you targeting? The main thing to think about is whether you're just interested in smartphones, or whether visitors to your site will be using lower-specification devices without full web browsers (for example, feature phones, which are more widely used than you may think).
- Does your site have images or a logo that you want to display on mobiles?
- Are there any widget areas on your site that you need to display on mobiles? Even if you've used widgets, you may not always need to display them to mobile visitors.
- How much control do you want over the way your site looks on mobiles? Some plugins come with alternative themes or styling options, letting you pick colors and styles to some extent.
- How will people be accessing your site? There's a good chance that they'll be using 3G or another slower method of data transfer. Speed and file sizes are, therefore, important to save losing visitors or alienating them because you're using up their data allowance.
When we come to looking at some individual plugins, we will identify how each of them addresses the questions you've just answered.
What just happened?
You now have some criteria you can use while choosing the best plugin for your site.
In the case of the Carborelli's site, our criteria are as follows:
- The site will be targeting smartphones; in particular, iPhones, Android devices, and Blackberries. Access from other phones is not essential.
- The logo isn't crucial on mobile devices—it's more important for people to be able to get the content. However, there are images and an embedded map showing Carborelli's location, which are important.
- The site uses a widget area for the sidebar, making it easier for the client to update information in the future. So yes, it's important that widget areas are displayed.
- Fine control over the styles isn't essential as long as the default style provided by the plugin is smart and images are displayed, as they will provide a lot of visual cues.
- Most users will be from the USA and using 3G. Speed and file size are important to reduce data transfer, so we'll be looking for a plugin that doesn't make too many server requests and downloads smaller versions of images.
The Carborelli's site, when tested using Google speed test (https://developers.google.com/pagespeed/) scores a fairly respectable 75 out of 100. Ideally, a mobile plugin should speed the site up, so give a higher score.
We will come back to these criteria shortly while looking at some plugins.
推薦閱讀
- 30天自制操作系統
- Citrix XenApp Performance Essentials
- 構建可擴展分布式系統:方法與實踐
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- 混沌工程實戰:手把手教你實現系統穩定性
- 異質結原理與器件
- Linux命令行大全(第2版)
- 跟老男孩學Linux運維:Shell編程實戰
- μC/OS-III內核實現與應用開發實戰指南:基于STM32
- UI設計手繪表現從入門到精通
- Windows Server 2008組網技術與實訓(第3版)
- VMware vSphere 5.1 Cookbook
- Less Web Development Essentials
- Implementing Domain-Specific Languages with Xtext and Xtend(Second Edition)
- Docker for Developers