Title: Hide current language
Last modified: June 19, 2018

---

# Hide current language

 *  Resolved [Dinamicore](https://wordpress.org/support/users/dinamicore/)
 * (@dinamicore)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/hide-current-language/)
 * Hello:
 * I used below codes to to add a shortcode, and the css to style. Both working 
   fine:
 *     ```
       // PHP: Add this to your functions.php file
   
       function polylang_flags_shortcode() {
           ob_start();
           pll_the_languages(array('show_flags'=>0,'show_names'=>1));
           $flags = ob_get_clean();
           return '<ul class="polylang-flags">' . $flags . '</ul>';
       }
       add_shortcode('POLYLANG', 'polylang_flags_shortcode');
   
       /* CSS Polylang Flags/Names Inline */
       .polylang-flags {
         list-style-type: none;
         margin: 0;
         padding: 0;
       }
       .polylang-flags li {
           display: inline;  
       }
       ```
   
 * Now, I need to hide the current language.
 * Please advice on a code to add or modify.
 * Thanks
    -  This topic was modified 7 years, 11 months ago by [Dinamicore](https://wordpress.org/support/users/dinamicore/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhide-current-language%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [codestylist](https://wordpress.org/support/users/codestylist/)
 * (@codestylist)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/hide-current-language/#post-10414421)
 * The best way is always to look at the function reference by your self: [https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/](https://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/)
 * there you will find the argument ‘hide_current’ which you have to add to your
   code. That’s it!
 *  Thread Starter [Dinamicore](https://wordpress.org/support/users/dinamicore/)
 * (@dinamicore)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/hide-current-language/#post-10415281)
 * [@codestylist](https://wordpress.org/support/users/codestylist/) thank you! That
   was it!

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

The topic ‘Hide current language’ 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/)

## Tags

 * [hide](https://wordpress.org/support/topic-tag/hide/)
 * [language](https://wordpress.org/support/topic-tag/language/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dinamicore](https://wordpress.org/support/users/dinamicore/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/hide-current-language/#post-10415281)
 * Status: resolved