Think Mobily: 4 DIY Ways to Take Your Site Mobile

THINK MOBILY: 4 DIY WAYS TO TAKE YOUR SITE MOBILE

Itโ€™s no secret that the Internet is going mobile. In fact 40% of surveyed usersย typically leave a site within 3 seconds if itโ€™s not optimized for the device in their hands. And 30% of mobile users abandon a purchase completely if they canโ€™t carry it outย from their mobile device.

The first step to making your site responsive is understanding there is no magic button that will make a fully functional site work across all screen sizes with the exact same design elements. However, there are a coupleย alternatives that will allow your site to optimize for mobile devices in a simpler format.

Finding the right solutionย is a balancing actย between complexity, cost, and quality. If you have neither the knowledge nor the time to learn how to make your site a high-quality mobile experience on your own, or if your site is a large project that needs to be ready immediately to attract the attention of high profile clientele, pay a professional to do it for you.

Like most things in life, your site is only as good as the investment you put into it. That said, if you donโ€™t have the resources to hire a web developer or learn to build a responsive site yourself, there are cheaper alternatives that can save you time and money:

Pre-Built Mobile Themes

If your site is running through WordPress or another CMS (Content Management System), you can findย a variety of themes for these configurations that are also mobile. These themes typically range from $35โ€“60, and they are designed to fit the specific needs of a variety of sites. Whether you own a restaurant or are an Internet Service Provider, thereโ€™s a pre-built theme for you.

Before downloading and paying for a theme, check out the live preview to be sure itโ€™s what you want and that itโ€™s responsive. A good way to verify this is to slowly reduce the width of your browser until itโ€™s about 2.5 inches wide. If the site adapts to your movement, the theme is responsive. If you have to scroll sideways to read all of the content, pick another theme.

If you arenโ€™t already committed to a non-responsive theme for your site, buying a pre-built mobile optimized theme is definitely the best way to go.

Separate Domains for Different Device Widths

Although there are plugins that canย create a separate, mobile-friendly domainย for free, there are several reasons you shouldnโ€™t go the m.website.com route. Itย is an outdated method of making your site work on more than just a desktop. This method could also indirectly affect your SEO (see why here: https://moz.com/blog/seo-of-responsive-web-design). Focus instead on serving different experiences for different device widths on the same domain.

Media Queries forย Making Your Site Responsive

First off, your site’s code needs to know the width of a userโ€™s screen, and there’s no better source for thatย than theย individual devices that visit your site. To let your browser know a phone’sย dimensions, place a viewport tag below the title tag of your site in the head of the code. In the image below, the viewport tag resides below the title tag on line 6. After implementation, your browser now can use the width of the viewport to compare it to any media queries you have set up in the code.

viewport tag code

Now set up media queries to style each type of device differently based on ranges the screen width could fall into.

In the image below there are two media queries, one targeting screenย sizes of 1220 pixels wide or less (between lines 2 and 7) and the second targeting any size between 960 and 1220 pixels wide (between lines 10 and 15). The second query overrides the first because it appears later in your stylesheet, just like regular CSS.

media queries

Just place any CSS you want to behave differently at these targeted screen sizes within the curly braces and it will behave the same as if you had coded this part in a regular style sheet.

Suppose your tabletโ€™s width fell inside this range of your second media query , the H3s would then have a font size of 25 pixels because theyโ€™d take precedence over rules you had set before on your H3s.

Most often on our website build, we set media queries to change at 1220px, 1050px, 960px, 768px, and 479px.

Mobile First Frameworks

If you donโ€™t want to work with WordPress but youโ€™re fairly comfortable with coding HTML and CSS and web file management, another good alternative is utilizing mobile first frameworks like Bootstrap or Foundation.

Bootstrap and Foundation are code structures that were created with mobile web design in mind. They come with a lot of pre-built CSS classes and Javascript libraries that can make coding your own site a lot easier and faster.

Some downsides to this approach are that mobile-first frameworksย can become a bit bulkyย whenย storing extra features. This extra storage can affect the load time of your site by bogging down servers with unusedย files. Also, when usingย someone elseโ€™s code, you have to dedicate time to reading the documentation of the framework you want to use in order to get it to do exactly what you want to. And that’sย fine if you plan on building multiple sites, but if you only plan to work on one, mobile first frameworksย might not be the best option.

Although there is no magic “make my site responsive” button, these options can allow visitors to surf your website on phones or tablets in no time.

Sources:
Why responsive sites are better than mobile specific domains:
https://moz.com/blog/seo-of-responsive-web-design
Pre-built WordPress themes:
https://themeforest.net/category/wordpress
How to use media queries:
https://googlewebmastercentral.blogspot.com/2012/04/responsive-design-harnessing-power-of.html
Mobile first code frameworks:
https://getbootstrap.com
https://foundation.zurb.com/

Sean R Parker

No Comments

  1. Josh on May 5, 2015 at 9:10 am

    “30% of mobile users abandon a purchase completely if they canโ€™t carry it out from their mobile device” โ€” that is motivating for people like me who still believe that desktop computers are the best electronic things that ever existed. The truth is that people are on mobile devices, regardless of how much I personally prefer desktop computers. Given that fact, I can definitely use these tips. Thanks Sean!

    • Jamison Michael Furr on May 6, 2015 at 3:06 pm

      I feel you @disqus_BkikKRpjfe:disqus – I rarely, (maybe even never) make a purchase on mobile. But I think that’s because my experience on so many mobile sites has been so poor, that the thought of doing something like shopping or completing a purchase seems like a real headache to me. I guess that just all goes to show that it is really important to optimize every part of the process for mobile.

  2. Dave Barrington on May 5, 2015 at 5:26 pm

    Great article, but a lot of these DIY tips are still pretty advanced. If
    in doubt, hire a developer. A $100 up front can save you $500 worth of
    headache down the road.

    • Sean R Parker on May 6, 2015 at 8:28 am

      This is so true! It’s like hiring a plumber when necessary, sometimes you can manage on your own, other times it takes an expert. It all depends on the task and your ability to handle it, but taking on something too big causes problems down the road. And making a site responsive the correct way is no small task.

  3. Andrew Williams on May 8, 2015 at 12:27 pm

    Cool article Sean. This is definitely a trending topic right now for all the people scrambling to get their sites mobile friendly. It is definitely important and this article breaks down the options people have.

Leave a Comment