Houzez is a popular WordPress real estate theme that allows you to manage property listings with a wide range of options and customizations. Using WPML and Houzez, you can build multilingual real estate websites.
On this page
- Getting Started
- Translating Posts and Pages
- Translating Properties
- Translating Property Labels via String Translation
- Assigning a Translated Property to an Agent
- Translating Taxonomies
- Setting the translation preference for Fields Builder
Getting started
Start by installing and activating the following:
- Houzez theme
- WPML core plugin and WPML String Translation add-on
If you’re new to WPML, check out our Getting Started Guide. It quickly walks you through different translation options you can use.
WPML’s Translate Everything mode allows you to automatically translate your whole site. However, at the moment, the Houzez theme doesn’t fully support this mode. We’re working with the theme’s authors to solve this soon.
Translating Posts and Pages
Houzez comes bundled with Elementor, which is fully compatible with WPML. You can translate posts and pages built with Elementor just like you would translate regular posts and pages.
Translating Properties, Agencies and Agents
The Houzez theme comes with some built-in post types like Properties, Agencies, and Agents. Translating them requires some extra steps as detailed below.
Here is how to translate a property. You can use these steps to translate other post types provided by the Houzez theme.
To translate a property and its fields, edit it and click the plus icon in the right sidebar’s Language section.
You are taken to the WPML Advanced Translation Editor to add your translations.
Once you have added and confirmed translations for each field, click Complete. Now we need to translate the remaining strings…
Translating Property Labels via String Translation
As you can see from the above example, there are some Property labels that do not appear in the Translation Editor. These texts can be translated via String Translation.
Making the Property Labels Translatable
To make Property Labels translatable, go to Theme Options page and click the Translation tab.
Go to the WPML → Theme and Plugins Localization page. Select and scan the Houzez theme in the Strings in the themes section.
Translating the Property Labels
Now, you can proceed to translate the labels:
- Go to WPML → String Translation and select the admin_texts_houzez_options domain.
- Now, search for strings that you would like to translate. You will notice there are multiple entries for the same label. You need to translate only the ones whose names follow this format: [houzez_options]sps_XXXX (where “XXXX” is the last part of the name).
For example, if you want to translate the “Description” string, follow the steps above and look for the [houzez_options]sps_description name. Click the plus icon to add the translation.
Once saved, the translated version of this label will appear on the front-end of your Property posts when switching to the secondary language.
You can follow this same process to translate any remaining labels or strings coming from the theme. For more information, check out our page about translating texts using String Translation.
Assigning a Translated Property to an Agent
When you translate a Property page, it doesn’t get automatically assigned to the translated version of the Agent profile. You have to connect them yourself.
You must translate both the Property and the Agent to be able to connect them.
Use the following steps to assign a translated property to an agent:
- Edit the property in the secondary language. To do this, you can navigate to the list of Properties in the admin and then use the language switcher in the top admin bar to switch to that language.
- When you select to edit the property, a warning message appears to let you know that you are trying to edit the translation using the WordPress default editor. Dismiss the message by clicking the Edit anyway button.
- Select the Contact Information tab in the Houzez settings panel. Select the Agent Info option and then the translated version of the Agent profile.
- Click the Update button.
Translating Taxonomies
Houzez comes with the following custom taxonomies:
- Type
- Status
- Features
- Labels
- Country
- State
- City
- Area
Some categories and tags (taxonomies) assigned to posts and properties will appear for translation while translating the page using the Advanced Translation Editor.
Custom Houzez taxonomies can be translated via WPML’s Taxonomy Translation.
- Go to the WPML → Taxonomy Translation.
- In the dropdown on the top of the page, select the taxonomy you would like to translate.
For example, you could select Houzez’ “Labels”. When you do that, a window will appear showing the available terms to translate.
- To add a translation to a term, simply click the plus icon for it. A pop-up dialog appears and you can enter the translation.
- Click Save.
Continue the same process for all of our remaining taxonomies.
Make sure to translate the taxonomy name and slug in the section at the bottom of the translations panel (see below). This will ensure that the name of the taxonomy will also appear translated in URLs and other sections of your site.
Setting the translation preference for Fields Builder
You can add your own custom fields to properties, including Text, Number, Checkbox and more. To do this, go to Houzez → Fields Builder and click Add New.
To be able to translate these custom fields you need to make them translatable. Learn about how to do this in our guide about translating custom fields.
Translating Menus
With WPML, you can easily synchronize your menus across the different languages that you have on your website. For details, check out our guide on translating menus.
Known Issues
Some customers reported the following issues. We are working closely with the WPML team to fix them as soon as possible.
- Houzez Theme – Translations revert when the default language is not English
- Houzez – Custom taxonomy archives not displaying translated results
Source: https://wpml.org/documentation/theme-compatibility/creating-multilingual-real-estate-sites-with-houzez-theme-and-wpml/
Comments
0 comments
Please sign in to leave a comment.