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 Bobby 1 year, 9 months ago.

Assigned support staff: Bobby.

Author Posts
October 10, 2019 at 4:29 pm #4732931


We would like to prevent unnecessary code from loading at all.

Even if we use : define('ICL_DONT_LOAD_LANGUAGE_SELECTOR_CSS', true);

the flag are still loading (even if not used), see here :
hidden link

Please confirm how we can prevent those img's to load.

October 11, 2019 at 1:25 am #4734563


Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi There,

When you go to WPML->Languages->edit a language switcher and remove the flag in the front end, the flag will not load anymore even if you don't use the above code.

You can check this on the following staging site that is using a default theme (Twenty19).

-> hidden link

The code that is loading the src for the flag is coming from your Theme Jupiter.

Notice the class is "mk-lang-name" which is a Jupiter class.

Screen Shot 2019-10-10 at 6.21.57 PM.png