This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Itamar 2 weeks, 4 days ago.

Assigned support staff: Itamar.

Author Posts
October 2, 2019 at 10:00 am #4678779

arturasD-2

How to solve these CSS sprites error?

October 2, 2019 at 5:22 pm #4682413

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Could you please elaborate on the issue that you are having?
Where do you see this message?
Is it related to one of the plugins that you are using?
Is it causing any problem on your site or is it only the message itself that you are worried about?

Thanks,
Itamar.

October 3, 2019 at 7:52 am #4685519

arturasD-2

It will show on gtmetrix, and some isues with this on google page insights

October 3, 2019 at 8:32 am #4685811

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

The flags PNG images for WPML's Language Switcher are very small in size. Their dimension is 18X12 pixels, and their weight is around 400 bytes. There is no point in gathering them as an image sprite. As far as I can see it, you are getting this general message just as a recommendation which IMHO you can disregard.

Best Regards,
Itamar.

October 3, 2019 at 10:48 am #4686919

arturasD-2

You still do not provide how to fix it. I know that issue dont make look bad my website but big things consist from small things, so i want to know how to fix it.

October 3, 2019 at 5:24 pm #4690081

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

To fix this issue, you would need to educate yourself (if you are not yet familiar) with what is CSS Image Sprite. For this, please review the following helpful links on this subject.
hidden link
hidden link
In addition, you will also need to know how to create a custom Language Switcher. About that, you can read in our documentation at the following link.
https://wpml.org/documentation/getting-started-guide/language-setup/custom-language-switcher/

In another forum ticket (Spanish) at the following link, the same issue was raised by another user. https://wpml.org/es/forums/topic/css-sprites/. The issue was submitted as a feature request by Andres, my colleague. But our developers had decided that it is not reasonable that we will create one big image with all the languages' flags that we have with WPML, where most of our users would not use even 5% out of it. The feature request was declined.

If you still want to implement this on your site and don't know how to do that, you can use professional help. At this point, I would suggest you consider contacting one of our certified partners from this link: https://wpml.org/contractors/.
Before doing so, please have a look also here:
https://wpml.org/documentation/about-wpml-contractors/what-type-of-work-you-can-expect-from-contractors/

With our contractors, you might get the custom assistance you need to get on with your project.

Best Regards,
Itamar.