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:
- Create an empty plugin like this: https://gist.github.com/sareiodata/76f701e01db6685829db
- 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’ );
}
- 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,
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!
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,