• Resolved irmaspago

    (@irmaspago)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Anghel Emanuel

    (@anghelemanuel99)

    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
    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

    (@irmaspago)

    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

    (@anghelemanuel99)

    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.