Title: widget link, please help!
Last modified: August 21, 2016

---

# widget link, please help!

 *  [ebenezer357](https://wordpress.org/support/users/ebenezer357/)
 * (@ebenezer357)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/widget-link-please-help/)
 * Hi, in a widget im using this code:
    `<td> <a title="Bibles" href="http://www.
   bibliadeldiscipulo.net/libros/"><!--:en-->Bibles<!--:--><!--:es-->Biblias<!--:--
   ></a></td>`
 * I want that when my visitors are viewing the site in SPANISH this link takes 
   them to [http://www.bibliadeldiscipulo.net/es/libros/](http://www.bibliadeldiscipulo.net/es/libros/)
   i tried to code it like that but didn’t work, it takes them to the english version.
 * Please help me!
 * thanks
 * [http://wordpress.org/extend/plugins/qtranslate/](http://wordpress.org/extend/plugins/qtranslate/)

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

 *  [mustbuzz](https://wordpress.org/support/users/mustbuzz/)
 * (@mustbuzz)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/widget-link-please-help/#post-3829270)
 * what about this
 *     ```
       <!--:en--><td> <a title="Bibles" href="http://www.bibliadeldiscipulo.net/libros/">Bibles</a></td><!--:-->
   
       <!--:es--><td> <a title="Bibles" href="http://www.bibliadeldiscipulo.net/es/libros/">Biblias</a></td><!--:-->
       ```
   
 *  [mario22april](https://wordpress.org/support/users/mario22april/)
 * (@mario22april)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/widget-link-please-help/#post-3829274)
 * Hi, I create this funstion to change all forgoten (not translated) text in page.
   
   Insert in end of yor index.php
 * $out1 = ob_get_contents();
    ob_end_clean(); function lang_shortcodes($matches){
   if ($matches[2]==qtrans_getLanguage()){ return $matches[4]; } else { return ”;}}
   $out1=preg_replace_callback(‘/(<\!–:)([a-z]{2})(–>)([^(<\!–:)]*)(<\!–:–>)/’, ‘
   lang_shortcodes’, $out1); //die(); echo $out1;
 * And do not forget to insert ob_start(); on begining of this file.

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

The topic ‘widget link, please help!’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate.svg)
 * [qTranslate](https://wordpress.org/plugins/qtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [language](https://wordpress.org/support/topic-tag/language/)
 * [link](https://wordpress.org/support/topic-tag/link/)
 * [text](https://wordpress.org/support/topic-tag/text/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 2 replies
 * 3 participants
 * Last reply from: [mario22april](https://wordpress.org/support/users/mario22april/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/widget-link-please-help/#post-3829274)
 * Status: not resolved