WPML

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:

  1. Create the folder wp-content/themes/essentials-child.
  2. In this folder, create a style.css file with this content:
    /*
    Theme Name: Essentials Child
    Template: essentials
    */
  3. Copy the 404.php file from wp-content/themes/essentials to wp-content/themes/essentials-child.
  4. In the copied 404.php file, find this line (around line 139, below // Elementor):
    setup_postdata($page);
  5. Replace it with this line:
    setup_postdata($post);
  6. Go to AppearanceThemes and activate Essentials Child.

Your Theme Options stay the same. The 404 page now shows the translated page on translated URLs.

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.