Quick Tutorial: Translating Captiva

With eCommerce truly global it goes without saying that there is increasing demand for online shopping in your own language.

It’s a question we get asked a lot – “How do I go about translating Captiva?”. This is a quick run through of the steps to take.

1. Add a Language Pack to WordPress

WPMU Dev have done a terrific job in summarizing this step so check out the process!

2. Translate Captiva’s English strings

Now that WordPress is running in your language you’ll need to translate the English strings in Captiva to your own language.

This is done using the included ‘.po’ file within wp-content/themes/captiva/languages

  1. Install Poedit.
  2. Download the captivalang.po file from wp-content/themes/captiva/languages
  3. Open in Poedit and save as nl_NL.po (in this example – Dutch). Your language file name needs to match one on this list. Updatethis is an easier place to find your language code
  4. Translate your strings.
  5. Save your new nl_NL.po AND nl_NL.mo file and upload them to the /captiva/languages folder
  6. Add this to wp-config.php:
    define (‘WPLANG’, ‘nl_NL);
    The name MUST match your .mo file precisely (including being case sensitive)

3. Video Tutorial

You could also check out this excellent tutorial by AJ Clarke on the translation process.

Remember you can purchase our WooCommerce theme Captiva today over on ThemeForest. If you’re a WooCommerce newbie we also provide a free installation service to get you up and running with your own WordPress powered online shop in no time!

Keep Captiva up to date with the Envato Toolkit

We try to keep our WooCommerce theme Captiva up to date by regularly releasing updates which include bug fixes, compatibility resolutions and new features.

Here is a quick tutorial on keeping Captiva and indeed any other theme on ThemeForest up to date.

1. Download the Envato WordPress Toolkit

git-envato

We’ve included this with Captiva so you probably won’t need to worry about this step – it will be pre-installed. But if you are looking for it you’ll need to download it from GitHub as it’s not available in the regular WordPress Plugin Repository. Then go to Plugins > Add New and upload the zip file.

Activate the Envato Toolkit Plugin and an option for it should appear on the dashboard left hand side menu.

2. API Key

api-key

Next you’ll need to create an API key to connect your WooCommerce site to your ThemeForest account. Login to ThemeForest, hover over your username and click on “My Settings” and click on “API Keys” on the left hand side menu. Generate a free API key from this screen.

3. Update Captiva

envato-plugin

Now when you click on the Envato menu item you can enter your ThemeForest username and API key you’ve just generated.

On the following screen there should be an option to automatically update Captiva to the latest version.

And if you want to do this manually?

You can of course simply unzip the latest version of Captiva and upload it, overwriting the old. But make sure you’re using a child theme! If not, modifications you’ve made to any files will be lost.

Captiva Theme Options are saved to the database so don’t worry – they won’t be overwritten with any update.

Quick Tutorial: Adding a Twitter Widget to your Site

The official widget from Twitter was not explicitly designed for WordPress but I think it’s the best option for embedding tweets on your site.

It allows you to display tweets from a range of sources including your own feed, tweets you have favorited, tweets from lists you have created, search queries, and collections.

You can define the height of the widget and choose from either a light or dark color scheme. The widget contains a follow button to allow people to follow you on Twitter directly through your website.

To access the official widget, log into your Twitter account and click on Settings > Widgets > Create new.

twitter-tutorial

This creates a little block of HTML code which you can simply paste within a simple Text WordPress widget within Appearance > Widgets.

Easy peasy! To see the result just check out the sidebar of this page.