Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing issues with images not displaying correctly when switching languages on your custom developed templates in you custom child theme based on Avada, and the category archive pages are custom PHP templates in your child theme.

Solution:
We recommend using WPML's filters and action hooks to ensure proper multilingual support for your custom templates. You can find detailed documentation and resources on how to implement these in your WordPress theme or plugin here:

If you require further customization, consider hiring a professional from WPML Contractors.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML Support Forum.

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 3 replies, has 0 voices.

Last updated by Waqas Bin Hasan 1 week ago.

Assisted by: Waqas Bin Hasan.

Author Posts
June 27, 2025 at 9:57 am

sandraF-13

Background of the issue:
I am trying to ensure that when users switch the website language, all images load and display consistently across all languages, just as they do in the English version. The site I need help with is hidden link.

Symptoms:
Images do not display correctly when switching from one language to another on the website.

Questions:
How can I ensure images display consistently across all languages when using WPML?...

June 27, 2025 at 11:34 am
June 27, 2025 at 12:19 pm #17177381

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

I checked in detail and found that you are using a custom child theme based on Avada. And all those category archive pages are custom PHP templates in your child theme. Because if I switch to parent Avada theme, then I get 404 not found pages:

- hidden link
- hidden link
- hidden link

Unfortunately support for custom coding is out of scope of this forum. However, I tried checking some PHP based templates in your child theme but that requires so much time and effort and unfortunately we're unable to provide support around that.

WPML offers filters and action hooks that can be used in your WordPress theme or plugin to provide correct multilingual support. Browse following resources for more information:

- https://wpml.org/documentation/support/wpml-coding-api/
- https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/
- https://wpml.org/documentation/support/wpml-coding-api/shortcodes/
- https://wpml.org/faq/how-to-get-current-language-with-wpml/
- https://wpml.org/documentation/support/wpml-tables/
- https://wpml.org/documentation/support/

If you need additional custom work, we recommend you contact WPML Contractors at https://wpml.org/contractors/.

June 29, 2025 at 6:44 am #17179894

sandraF-13

Even after making the changes in the level i'm still unable to see the images.

June 30, 2025 at 8:12 am #17181645

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

As I mentioned earlier, custom coding support is out of scope of this forum.

However, if you can reproduce the issue with WPML plugins and a default WordPress theme like 2021 or 2024, then we can look into this, considering a WPML problem. Otherwise, we are not able to provide any support about your heavily customized theme.

Thank you for your understanding.