Title: Polylang &amp; Theme option
Last modified: August 24, 2016

---

# Polylang & Theme option

 *  Resolved [Jotrobo](https://wordpress.org/support/users/jotrobo/)
 * (@jotrobo)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/polylang-theme-option/)
 * Hi, I installed the polylang plugin. It’s running fine, but I don’t know how 
   translate the content of theme options like sections(services). Is it possible
   to tranlate?
    Thanks for all!

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

 *  Theme Author [sonalsinha21](https://wordpress.org/support/users/sonalsinha21/)
 * (@sonalsinha21)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/polylang-theme-option/#post-6034025)
 * Yes can be used. Here is the discussion how: [https://wordpress.org/support/topic/polylang-shortcode-like-qtranslate-for-theme-options-and-text?replies=19](https://wordpress.org/support/topic/polylang-shortcode-like-qtranslate-for-theme-options-and-text?replies=19)
 *  Thread Starter [Jotrobo](https://wordpress.org/support/users/jotrobo/)
 * (@jotrobo)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/polylang-theme-option/#post-6034047)
 * Please, tell me if I understood correctly.
    I have to add this code in the functions.
   php of the skt white theme:
 * // [polylang lang=”en”]English[/polylang][polylang lang=”sp”]Spanish[/polylang]
   
   function polylang_shortcode($atts, $content = null) { if (empty($content)) return”;
   extract( shortcode_atts( array(‘lang’ => ”), $atts ) ); if (empty($lang)) return“
   <h3>You must specify ‘lang’ using shortcode: polylang</h3>”;
 *  return ($lang == pll_current_language()) ? $content : ”;
    } add_shortcode(‘polylang’,‘
   polylang_shortcode’);
 * And then I have to insert the shortcode…
    [polylang lang=”en”]English[/polylang][
   polylang lang=”sp”]Spanish[/polylang] where?
 * Excuse my poor english, the post that you recommend me is full of technics words
   xD too much for my knowledge.
    Thans a lot for your patient, I hope you will 
   can help me to solve this situation.
 *  [Rob.](https://wordpress.org/support/users/rob-1/)
 * (@rob-1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/polylang-theme-option/#post-6034172)
 * Hi,
 * Sorry to jump into the conversation but I am having the same problem and couldn’t
   find out how to use the workaround proposed in the other post. Did you find out?
 * Thank you and have a nice day.
    Kind Regards.

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

The topic ‘Polylang & Theme option’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/skt-white/2.1/screenshot.png)
 * SKT White
 * [Support Threads](https://wordpress.org/support/theme/skt-white/)
 * [Active Topics](https://wordpress.org/support/theme/skt-white/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/skt-white/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/skt-white/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Rob.](https://wordpress.org/support/users/rob-1/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/polylang-theme-option/#post-6034172)
 * Status: resolved