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

Open

Reported for: WPML Multilingual CMS 4.6.13

Topic Tags: ATE, Compatibility

Overview of the issue

When using Betheme to create posts or pages with internal links, the translated versions of these pages fail to update the internal links to point to the translated URLs. Instead, they retain links to the default language version.

Workaround

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

  • Open …/wp-content/themes/betheme/functions/builder/class-mfn-builder-front.php file.
  • Look for line 2645.
  • Replace:
    public function show_items($item, $i, $vb, $w_iterate = false){
    
      		/*echo '<pre>';
      		print_r($item);
      		echo '</pre>';*/
    
      		$inner_class = array();
      		$item_class = array();
    
  • With:
    public function show_items($item, $i, $vb, $w_iterate = false){
    	/*echo '<pre>';
    	print_r($item);
    	echo '</pre>';*/
    
    	// WPML Workaround for compsupp-7547
    	$item['attr']['content'] = apply_filters( 'wpml_translate_link_targets', $item['attr']['content'] );
    
    	$inner_class = array();
    	$item_class = array();
    

6 返答 へ “Betheme - Internal Links in Translations Point to Default Language”

    • Hello Martin,
      We don’t an ETA at this point but we will keep this page updated.
      Thank you for your understanding.

        • Hello Martin,
          There is no news so far. It is already in our devs roadmap but these kind of implementations take time as it brings an important change in our code.
          For the moment, you can use the workaround here provided.
          We will keep this page updated.
          Regards

返答する

トピックからそれないようにし、他のユーザーを尊重してください。この投稿に関係のない問題についてサポートが必要な場合は、サポート フォーラムを使用してチャットを開始するか、チケットを送信してください。

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