Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

Convert Metric to Imperial Units in WordPress with Unit Converter

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
Convert Metric to Imperial Units in WordPress with Unit Converter

Given the international scope of the web, if you have a WordPress blog that uses lots of measurements then this article is for you. Although you could manually convert all of the measurements by yourself, it is much easier to use the Unit Converter Plugin for WordPress.

To get started go ahead and download this plugin. Once you have it installed and activated you will want to configure the plugin settings. Notice, however, that there is no options page in your admin panel. In order to make changes we will have to edit the plugin file found at /wp-content/plugins/unit-converter.php. Don’t worry though, this isn’t as hard as it sounds and we will walk you through it.

First though, we should understand what Unit Converter Plugin for WordPress does. Essentially, it takes any measurement found in your blog and converts it to the metric or non-metric equivalent. You have two options when it comes to displaying the conversions. Either you can use the mouseover technique or you can have it displayed in brackets after the original measurement. In order to switch these go to line 31 in the unit-converter.php file. and change

$display_mode = 'mouseover';


$display_mode = 'parentheses';

Download the Unit Converter Plugin for WordPress here

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.