Overview of the Issue
When using Essentials with the pixfort Core plugin (4.5.1) and WPML, you might experience the following issue: you choose a custom 404 page in the Theme Options and translate it, but the translated URLs show the content of the default-language 404 page. The page title is translated, but the content is not. This happens because the theme’s 404 template uses the ID of the original page, not the ID of the translated page. The issue happens when WPBakery Page Builder is not active.
Workaround
Use a child theme with a corrected copy of the 404 template:
- Create the folder
wp-content/themes/essentials-child. - In this folder, create a style.css file with this content:
/* Theme Name: Essentials Child Template: essentials */ - Copy the 404.php file from
wp-content/themes/essentialstowp-content/themes/essentials-child. - In the copied 404.php file, find this line (around line 139, below
// Elementor):setup_postdata($page); - Replace it with this line:
setup_postdata($post); - Go to AppearanceThemes and activate Essentials Child.
Your Theme Options stay the same. The 404 page now shows the translated page on translated URLs.