Title: lebero's Replies | WordPress.org

---

# lebero

  [  ](https://wordpress.org/support/users/lebero/)

 *   [Profile](https://wordpress.org/support/users/lebero/)
 *   [Topics Started](https://wordpress.org/support/users/lebero/topics/)
 *   [Replies Created](https://wordpress.org/support/users/lebero/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/lebero/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/lebero/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/lebero/engagements/)
 *   [Favorites](https://wordpress.org/support/users/lebero/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[qTranslate] applying qtranslate to widget title](https://wordpress.org/support/topic/applying-qtranslate-to-widget-title/)
 *  [lebero](https://wordpress.org/support/users/lebero/)
 * (@lebero)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/applying-qtranslate-to-widget-title/#post-5392998)
 * I already figured out!!
 * You need to replace **$front->widget->post_title** for **ppqtrans_useCurrentLanguageIfNotFoundShowAvailable(
   $front->widget->post_title)** in your template code.
 * This is template dependant so, open the php files of your template and search
   for the string to be replaced, once founded, replace it. If this doesn’t work
   you can try replacing into the plugin’s files.
 * I try this in the **WP Frontpage News plugin**, editing the wp-fpn-widget.inc.
   php file. I change the code like this :
 *     ```
       include_once "/wp-content/plugins/qtranslate-xp/ppqtranslate_hooks.php";
       $lengua = ppqtrans_useCurrentLanguageIfNotFoundShowAvailable($front->widget->post_title);
       echo $args['before_title'] . $lengua . $args['after_title'];
       ```
   
 * instead of
 * `echo $args['before_title'] . $front->widget->post_title . $args['after_title'];`
 * Good Luck!
 * Note: in order to translate the widget title, you need to enter the title in 
   this format: [:es] TU TITULO [:en] YOUR TITLE (replace the language codes for
   your active languages)

Viewing 1 replies (of 1 total)