Skip Navigation

Open

Symptoms

When you use Divi’s Shop module on a page or a theme builder layout, the Included Categories options don’t remain selected when WPML is active.

Divi's Included Categories Section
Divi Shop’s Included Categories Section

Workaround

We’re contacting Divi theme developers to apply a permanent fix for this issue. In the meantime, you can use this workaround:

Please backup your WordPress files and database first.

  1. Go to wp-content/themes/Divi/includes/builder/plugin-compat/sitepress-multilingual-cms.php
  2. Find
    $new_ids[] = apply_filters( 'wpml_object_id', $cat_id, 'product_cat' );
  3. Replace it with
    $cat_id_translated = apply_filters('wpml_object_id', $cat_id, 'product_cat');
    				if ($cat_id_translated) {
    					$new_ids[] = $cat_id_translated;
    				} else {
    					$new_ids[] = $cat_id;
    				}

留下回复

请在此留下仅与此页相关的评论。
要获得技术支持或提供功能建议,敬请访问我们的论坛

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>