Title: [Plugin: Polylang] flags are huge
Last modified: August 20, 2016

---

# [Plugin: Polylang] flags are huge

 *  Resolved [Zapirka](https://wordpress.org/support/users/zapirka/)
 * (@zapirka)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/)
 * Hi there,
 * need some help with displaying the flags in the language switcher at the end 
   of the top menu. It all worked well until I made some changes to the header of
   the twentyeleven theme. Now I see huge flags (cca 1000px long). When I switch
   to showing the language as text it all works fine.
 * I tried to fix the flag size in base.php like this:
 * return isset($url) ? ‘<img width=”11″ height=”16″ src=”‘.esc_url($url).'” alt
   =”‘.esc_attr($lang->name).'” />’ : ”;
 * but it didn’t help. Any suggestions are more than welcome.
    Many thanx, Albena
 * zapirka.com (I have disabled the language switcher until the problem is solved,
   but can enable it for testing purposes.
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553374)
 * I saw what you did.
    You added the css rules for your image header:
 *     ```
       #branding img {
           height: 144px;
           margin-bottom: 0;
           margin-left: 0;
           margin-top: 0;
           width: 1000px;
       }
       ```
   
 * The issue is that the menu is included in the ‘branding’ div, so all img (including
   the flags) are using this rule
 * To correct that, just add:
 *     ```
       #access img {
           height: 11px;
           width: 16px;
       }
       ```
   
 *  Thread Starter [Zapirka](https://wordpress.org/support/users/zapirka/)
 * (@zapirka)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553391)
 * wonderful!!! it works fine now and I understand why it was wrong before!!
    Thank
   you so much!!!!
 *  [Eugenii](https://wordpress.org/support/users/eugenii/)
 * (@eugenii)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553827)
 * Hello!
    First of all big thanks to Author! A tried two other plugins: qTranslate
   and xili-language. First has some silly errors, like a mistake in the path to
   the image. Second doesn’t translate all or too difficult and time consuming for
   understanding how to do this (IMHO). Your plugin is just light, simple and powerfull!
   I use last 3.4.1 WP and last version of your plugin (from wordpress.org). The
   blog has twentyeleven theme enabled. If I switch On to show flags in the menu,
   which is the only main menu in theme, then these flags become rather BIG (maybe
   x10 or x100 size). I work around this by editing style.css: #branding img { height:
   11px; width: 16px; //height: auto; <= old line //margin-bottom: -7px; <= old 
   line //width: 100%; <= old line } Is it a bug/mistake of your plugin or theme?
   Thanks
 *  [Eugenii](https://wordpress.org/support/users/eugenii/)
 * (@eugenii)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553828)
 * Just found another annoying thing.
    At the bottom of the post there is a text
   with link like “Posted in [url]Uncategorized[/url]”. When I move cursor over 
   url, a tooltip appears. But in both languages (en and ru) it is on russian! How
   can I fix that? And why does it happen? Thanks
 *  [Eugenii](https://wordpress.org/support/users/eugenii/)
 * (@eugenii)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553829)
 * A rather little functional forum engine, can’t edit my previous posts…
    So, another
   problem: if I open url like mysite.com/nonexistentpage or mysite.com/en/nonexistentpage,
   a ‘theme error’ page will be open in a default language (or maybe browser language,
   can’t check). It is shown in right language, only if I first choose that language
   from switcher. I have also translate new strings in russian, but I haven’t seen
   some of them on my site to check their context for correct translation. like 
   admin.php:501 , admin.php:502 , many new lines from admin-filters.php and maybe
   some others…
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553830)
 * You should not ask so many questions on a resolved post 😉
 * 1. For flags size in twenty eleven, there is no bug neither in polylang nor in
   twentyeleven. Just that twentyeleven authors did not forecast that some users/
   plugins may want to add images in the menu. So you need the small adaptation 
   mentionned above.
 * 2. Did you create a translation of your ‘uncategorized’ category ?
 * 3. The language should be the browser preference (if you set the corresponding
   option). This is a known issue as the /en/ is used only when relevant on archives
   pages.
 * 4. I guess you meant admin.php:301 and 302. Error messages are not always easy
   to display 😉

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

The topic ‘[Plugin: Polylang] flags are huge’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-polylang-flags-are-huge/#post-2553830)
 * Status: resolved