Title: Custom Flags
Last modified: February 6, 2023

---

# Custom Flags

 *  Resolved [irmaspago](https://wordpress.org/support/users/irmaspago/)
 * (@irmaspago)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-flags-5/)
 * Hello,
   I have a problem with custom flags. I have uploaded flags for two languages
   in my WordPress media. In Advanced Settings, I edited the current language flags
   by adding Language code and a new Flag URL. These custom flags are shown on desktops,
   but the original ones stay on tablets and mobiles. I would appreciate it if you
   could help me with this as I cannot find where the problem is.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-flags-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Anghel Emanuel](https://wordpress.org/support/users/anghelemanuel99/)
 * (@anghelemanuel99)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/custom-flags-5/#post-16448211)
 * Hello there,
 * Thank you for reaching us!
 * We will stick to the existing way of just adding the image size all the time.
   
   There is no real concern about performance because the image size we register
   is really small so it doesn’t occupy a lot of space on servers.The additional
   image size will be used in srcset for all images (non-TP too) but that does not
   increase site’s page loading time.
 * However, you can achieve the image size removing through a custom code:
    1. Create an empty plugin like this: [https://gist.github.com/sareiodata/76f701e01db6685829db](https://gist.github.com/sareiodata/76f701e01db6685829db)
    2. Add the following code to the end of it:
       add_action(‘after_setup_theme’, ‘trpc_remove_trp_image_size’);
       function trpc_remove_trp_image_size(){remove_image_size( ‘trp-custom-language-
       flag’ );}
    3. Install this plugin via FTP (copy it inside wp-content/plugins) or create a 
       zip archive with it and install it via the WordPress plugin upload functionality
 * Let me know if this worked for you!
 * Kind Regards,
 *  Thread Starter [irmaspago](https://wordpress.org/support/users/irmaspago/)
 * (@irmaspago)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-flags-5/#post-16490568)
 * Thank you for your help, I’ve resolved the issue I had in another way.
   But I 
   have another problem and I would like to know why it occurs.The class “.trp-ls-
   shortcode-current-language” has a fixed width of 74px when viewing the website
   from Windows OS and I cannot change it in CSS. MacOS, on the other hand, doesn’t
   have this issue. Is it possible that the problem is in operating system?Thank
   you in advance!
 *  Plugin Support [Anghel Emanuel](https://wordpress.org/support/users/anghelemanuel99/)
 * (@anghelemanuel99)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/custom-flags-5/#post-16539904)
 * Hello there,
 * Have you tried with any other browsers on Windows to see if all these shows the
   same issue?
 * Maybe there could be a problem regarding the browser you use.
 * Let me know about this!
 * Kind Regards,

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

The topic ‘Custom Flags’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

## Tags

 * [custom flags](https://wordpress.org/support/topic-tag/custom-flags/)

 * 3 replies
 * 2 participants
 * Last reply from: [Anghel Emanuel](https://wordpress.org/support/users/anghelemanuel99/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/custom-flags-5/#post-16539904)
 * Status: resolved