このユーザーにはお気に入りのトピックがありません。
お気に入りのフォーラムトピック
作成したフォーラムトピック
| ステータス |
トピック
|
サポーター | 声 | 投稿 | 新着度 |
|---|---|---|---|---|---|
|
URGENT: How to disable backend/admin translation — frontend only needed
開始者:shantoA
カテゴリ:English Support
Problem: Additionally, to address issues with menu items on translated pages not functioning correctly (e.g., the 'Products' menu item URL changing to '/es/#'), we suggest adding a code snippet to your theme's functions.php file or a custom plugin. This code will ensure that anchor-only URLs (like '#') are not translated, preserving their functionality across different language versions: /**
* Skip URL conversion for anchor-only URLs (# or #something)
* This prevents WPML from converting # to /es/# on translated pages
*/
add_filter( 'wpml_skip_convert_url_string', function( $skip, $url, $lang_code ) {
if ( strpos( $url, '#' ) === 0 ) {
return true;
}
return $skip;
}, 10, 3 );Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket for further assistance. |
|
1 | 11 | 4週前 | |
|
Translate directories
開始者:shantoA
カテゴリ:English Support
Problem: |
|
0 | 6 | 1ヶ月前 |