Skip Navigation

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.

This topic contains 1 reply, has 2 voices.

Last updated by Yuri 2 years, 8 months ago.

Assigned support staff: Yuri.

Author Posts
February 15, 2018 at 11:57 pm #1519759

Puntorosso

Hi,
when checking my sites with gtmetrix I always see this improvement suggestion

------------------------------------------------------
Combine images using CSS sprites
The following images served from mydomain.com should be combined into as few images as possible using CSS sprites.

hidden link
hidden link
hidden link
hidden link
hidden link
------------------------------------------------------

Just wondering if there is a way in WPML to accomplish this.

Thanks

Best

February 16, 2018 at 9:41 am #1520008

Yuri

Hi, thanks for the suggestion. We currently have this in our Feature Request list but since it is a low priority within our other requests it is still waiting to be evaluated for our future builds.

What I can suggest is that you build a custom language switcher using a Twig template to manage the CSS classes for the sprite. This way you will only need to create the sprite for the flags you use.

The documentation can be found here: https://wpml.org/documentation/getting-started-guide/language-setup/designing-custom-language-switchers-using-template-files/