ナビゲーションをスキップする

Open

Reported for: WPML Multilingual CMS 4.6.11

Topic Tags: Compatibility

Overview of the issue

If you are using the Cart Count widget from the Avada theme, you will experience that not all dynamic content parameters, as Singular or Plural, are available for translation.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Open …/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/FusionBuilder/DynamicContent.php file.
  • Look for line 10.
  • Replace:
    	protected $positions = [ 'before', 'after', 'fallback' ];
    
  • With:
    	protected $positions = [ 'before', 'after', 'fallback', 'singular_text', 'plural_text' ];
    
  • Refresh the translation by adding a small modification to the original content.

返答する

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

これらのタグを使用できます:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>