Skip Navigation


Resolved in: 4.5.0

Overview of the issue

When you add dynamic content in a Divi module that points to a media link (a PDF file, for example) and translate that module, the translated link will not point to the translated media, and it will give 404 error.


We’re working on a permanent fix for this issue. In the meantime, you can follow these steps to get the issue fixed on your website:

  1. Backup your website files and database.
  2. Go to wp-content/themes/Divi/includes/builder/feature/dynamic-content.php
  3. Find:
    $dynamic_content = json_decode( $json, true );
  4. After that line, add:
    if ($dynamic_content != NULL && $dynamic_content['settings']['post_id'] != NULL) {
    		$post_type                              = get_post_type( $dynamic_content["settings"]["post_id"] );
    		$dynamic_content["settings"]["post_id"] = apply_filters( 'wpml_object_id',
    			$dynamic_content['settings']['post_id'], $post_type, true );