Title: Modality Theme Options   Polylang
Last modified: August 30, 2016

---

# Modality Theme Options Polylang

 *  Resolved [JustAMinion](https://wordpress.org/support/users/justaminion/)
 * (@justaminion)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/modality-theme-options-polylang/)
 * Hi!
 * I recently installed Modality theme for my WordPress website which has to be 
   bilingual. For that purpose I’m using Polylang plugin and so far it works perfectly
   for my menus, posts and pages (thx Chouby).
 * The theme options which I don’t have under my Settings > Languages > Strings 
   translation are the problem. I mean, it’s not like I don’t have any: there are
   only few of them (Site Title, Tagline, Date Format and Time Format).
 * Modality theme has a lot of options and I’m using the one called Theme Features
   Section. Here’s a pic: [http://oi59.tinypic.com/20s8zk.jpg](http://oi59.tinypic.com/20s8zk.jpg)
 * Basically, I would like to add Title Text, Description Text, Feature Title, Feature
   Description and Feature URL to the Strings translation. I’ve read a lot of topics
   and found out that I have to use **pll_register_string($name, $string, $group,
   $multiline)** within **functions.php** file. In my Appearance > Editor I’ve found
   a file **modality-functions.php** and I assume that’s my file. My question is:
   where to put it (no pun itended)? It would be nice if someone could provide a
   fully understandable code snippet because I didn’t quite understand the usage
   of these functions (there aren’t any full examples on how to do this). Plus, 
   I don’t know PHP 🙁
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Chrystl](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/modality-theme-options-polylang/#post-6348108)
 * Hi
 * >  Title Text, Description Text, Feature Title, Feature Description and Feature
   > URL
 * There are many many Theme options. Which Theme options are concerned?
 *  Thread Starter [JustAMinion](https://wordpress.org/support/users/justaminion/)
 * (@justaminion)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/modality-theme-options-polylang/#post-6348119)
 * My website should be in croatian and english language. Now I just can write croatian_title
   | english_title (for exmaple KAMPANJE | CAMPAIGNS). When I press the circle button
   it navigates me to the KAMPANJE page which is in Croatian, and when I press the
   UK flag it translates to English. It is a good solution, but what I would like
   it to do is when I land on home page which is in croatian I would like for all
   the circles titles to be only in croatian, and when I press the circle it would
   redirect me to page which is in croatian. Also, when I’m on my home page I would
   like for all the circles titles to be in english and when I press the certain
   cricle it would redirect me to the english version of that page. For that I need
   the Title Text, Description Text, Feature Title, Feature Description and Feature
   URL to be editable.
 * In modality_functions.php I’va found details of a feature: ‘feature_one’, ‘feature_one_desc’,‘
   feature_one_url’ etc.
 *  Plugin Support [Chrystl](https://wordpress.org/support/users/chrystl/)
 * (@chrystl)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/modality-theme-options-polylang/#post-6348123)
 * If you don’t know php you should make a wpml-config.xml. Read this: [The WPML language configuration file](https://polylang.wordpress.com/documentation/documentation-for-developers/the-wpml-language-configuration-file/).
 * I found the option name of your theme `modality_theme_options`. I made a sample
   with some modality options to help you. Complete this file with the other theme
   options:
 *     ```
       <wpml-config>
       	<admin-texts>
       		<key name="modality_theme_options">
       			<key name="features_section_title" />
       			<key name="features_section_desc" />
       			<key name="feature_one" />
       			<key name="feature_one_desc" />
       		</key>
       	</admin-texts>
       </wpml-config>
       ```
   
 * Important: The file wpml-config.xml must be placed in the root directory of the
   plugin or theme. It is also possible for users to create their own wpml-config.
   xml file and to upload it in /wp-content/polylang/ (create the directory if it
   does not exist).
 *  Thread Starter [JustAMinion](https://wordpress.org/support/users/justaminion/)
 * (@justaminion)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/modality-theme-options-polylang/#post-6348140)
 * Thank you very much Chrystl, it works like a charm 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Modality Theme Options Polylang’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [JustAMinion](https://wordpress.org/support/users/justaminion/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/modality-theme-options-polylang/#post-6348140)
 * Status: resolved