Title: hendrah's Replies | WordPress.org

---

# hendrah

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Get language in index.php –> what code to use?](https://wordpress.org/support/topic/get-language-in-indexphp-what-code-to-use/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/get-language-in-indexphp-what-code-to-use/#post-7550387)
 * Hi…it is good to hear that it works for you. I see your blog and a nice one too.
 * Cheers…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Get language in index.php –> what code to use?](https://wordpress.org/support/topic/get-language-in-indexphp-what-code-to-use/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/get-language-in-indexphp-what-code-to-use/#post-7550375)
 * ok, try this
 *     ```
       <?php
         get_header();
         $curlang = pll_current_language();
         if ($curlang=='en') {
           putRevSlider("Plumedaureenglish");
         }
         elseif ($curlang=='fr') {
            putRevSlider("Plumedaure");
         }
         else { //slider for other languages, default to french
            putRevSlider("Plumedaure");
         }
       ?>
       ```
   
 * the rest of the code is the same. Try this and tell me how is it going.
    Cheers…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Parenthesis showing after language title in changer](https://wordpress.org/support/topic/parenthesis-showing-after-language-title-in-changer/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/parenthesis-showing-after-language-title-in-changer/#post-7483542)
 * Correction to my post above. I just testing my code to your site, and it is working…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Parenthesis showing after language title in changer](https://wordpress.org/support/topic/parenthesis-showing-after-language-title-in-changer/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/parenthesis-showing-after-language-title-in-changer/#post-7483541)
 * Well…there are many ways to generate the language option code. Without knowing
   how it was generated (the actual code used, not the generated html), it would
   be difficult to fix.
    Another alternative is using javascript/jquery to target
   the <span class=”w-dropdown-item-title”>English ()</span>, something like…
 *     ```
       jQuery( document ).ready(function() {
         jQuery("span.w-dropdown-item-title").text(function(index, text) {
             return text.replace("()", "");
         });
       });
       ```
   
 * This code is not tested, and may need tweaking…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Get language in index.php –> what code to use?](https://wordpress.org/support/topic/get-language-in-indexphp-what-code-to-use/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/get-language-in-indexphp-what-code-to-use/#post-7550367)
 * You can use polylang `function pll_current_language()` to get the current language.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Fatal error Polylang](https://wordpress.org/support/topic/fatal-error-polylang-1/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-polylang-1/#post-7561914)
 * This will not solved your error, but allow you to access your admin page again
   [https://www.ostraining.com/blog/wordpress/disable-a-wordpress-plugin/](https://www.ostraining.com/blog/wordpress/disable-a-wordpress-plugin/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] How make a dropdown languages menu](https://wordpress.org/support/topic/how-make-a-dropdown-languages-menu/)
 *  [hendrah](https://wordpress.org/support/users/hendrah/)
 * (@hendrah)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/how-make-a-dropdown-languages-menu/#post-7557413)
 * You can use the polylang function
 *     ```
       pll_the_languages(array('raw'=> true))
       ```
   
 * This function will give you array that has all the information for you to build
   your custom menu.

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