Google has been emphasizing the importance of mobile content over the past few years. If you are a webmaster, it is really important for your website to be mobile-friendly unless you are not concerned about the traffic coming from mobile devices, which could easily make up 30% of the overall traffic.

One important factor of the mobile device is its small screen (as compared to a desktop), which is why responsive web design has become a popular solution to make the website render well in various screen sizes. Another factor that has been overlooked by webmasters is the support for gestures. Most, if not all, mobile devices these days make extensive use of gesture actions (swipe, pinch, double tap, etc.) whereas most websites are still using the conventional mouse point and click way to navigate the site. In this article, I am going to show you how you can easily add gesture support to your WordPress site.

Tocca.js is a very simple javascript that can detect gesture action like “tap,” “double tap,” “swipe up,” “swipe down,” “swipe left.” Unless you are a developer, you won’t know what to do with it. This is where the Gestures plugin comes in. It makes use of the Tocca.js script and adds gesture support to your site.

Usage

1. Download Gestures from its Github page. Extract the archive and upload the folder to your WordPress plugins directory.

2. Activate the plugin in the Plugins section of WordPress.

3. Go to “Settings -> Gestures.” This is where you can configure the settings .

wp-gesture-settings

The “Content container identifier” field is the area on the site where you want the gesture to be activated. It is usually set to the main content div. For example, for our theme, the main content resides under the class="content" div, thus we will enter .content in the Content container identifier field.

For the next field, enter the URL where the user will be redirected to when they double tap on the site. This is usually set to the Home page of the site.

4. Once you are done, click “Save Changes.” That’s it. You can now load your site on your mobile and test out the swipe left/right action.

Things to note

1. The Gestures plugin depends on the prev/next tag on your theme header to work. Some themes are known to strip off these tags as they are not useful in most cases. WordPress SEO and several other plugins are also known to strip off these tags. If you can’t get Gestures to work, this is probably the reason.

One of the ways to tackle this is to add back the prev/next tag in your theme header. To do this, open up the functions.php file in your theme folder and add this line at the end.

add_action( 'wp_head', 'adjacent_posts_rel_link_wp_head',50 );

2. If you are not sure of the content container identifier for your theme, you can make use of the Developer Tools in Google Chrome to find the container div. In Google Chrome, right click on the main content area and select “Inspect Element.” The Inspector window will show up and highlight the current location where you click. Scroll upward to find its parent div. That will most probably be the container that you are looking for.

wp-gesture-find-container-class

3. To test the gesture action on desktop, simply click and hold your mouse and drag left/right. This is equivalent to swiping left and right on the mobile.

That’s it. Try it out and let us know if this works for you.

Play Music In Google Drive with DriveTunes [Chrome]

it’s not possible to play music in Google Drive, but installing a Chrome extension allows users to play music straight from the Google Drive directory,

How to Configure The Tabbed Inbox In Gmail

Google has recently introduced the new tabbed inbox in Gmail which will auto-sort your emails into various tabs and help you to be more productive. This new tabbed inbox interface is not activated by default. This article will show you how you can activate and configure the tabbed inbox in Gmail.

3 Ways to Allow Guest Users on Google Chrome

If you’re using Chrome and don’t feel like letting people poking into your privacy, here are some ways to set up guest users account in Google Chrome.

Understanding the Various Copyright Licenses

Copyright licenses are complicated. If you want to distribute your work, you will want to find out more about copyright licenses and which one you should use.

What to Do When You’ve Been Hacked

As of late, many people have been hacked and are the victims of password leaks and Trojan horse infections. The following are some tips if it happens to you

How To Access Dropbox from Google Chrome

EasyDrop is an extension for Google Chrome that lets you access your Dropbox files from Google Chrome, without leaving your current tab.

How to Stop Firefox from Sending Downloaded File Information to Google

Firefox version 31 comes with a feature that checks your downloaded file with Google for malware. You can disable it if you are concerned about your privacy.

3 Things to Do to Make Your Internet Life More Secure

The Internet is full of hackers and thieves, all wanting to get into your accounts. Here are 3 things you should do to make your internet life more secure.

How Anonymous Are You on the Internet, Really?

If you really want to be anonymous on the web, here are a few things you got to know and also learn a couple of tenets.

How to Perform Search and Replace in WordPress

WordPress doesn’t come with a search and replace function. Luckily, there are several plugins that you can use. Let check them out.

How to Clone and Migrate WordPress Sites the Easy Way

Migrating your WordPress site? Duplicator allows you to easily clone and migrate WordPress sites without messing with a whole lot of complicated settings.

4 Must-Have Chrome Extensions for YouTube Enthusiasts

If you are a Youtube enthusiasts, as well as a Chrome user, here are some of the best Chrome extensions for YouTube to improve your video watching experience.