Skip Navigation

Images missing alt tags if WPML enabled

Open

Symptoms

Outputting Types image fields—via types shortcodes or using image blocks—will generate HTML img tags that are missing the alt attributes.

This occurs when WPML is installed and active.

Workaround

We should have a fix for this in the next releases. In the meantime you can apply a patch.

Download and unzip this file: https://toolset.com/patches/WpmlService.php.zip

You will need to use this to replace the file of the same name used in your Toolset plugins. But, because it is a common file available in all plugins, you may need to replace the same file for every Toolset plugin.

The file can be found in this directory: /wp-content/plugins/{toolset plugin}/vendor/toolset/toolset-common/inc/autoloaded/wpml/

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>