이 사용자는 즐겨찾는 주제가 없습니다.
즐겨찾는 포럼 주제
생성한 포럼 주제
| 상태 |
주제
|
지원자 | 의견 | 게시물 | 최신 활동 |
|---|---|---|---|---|---|
|
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 | 3 주, 2 일 전에 | |
|
Translate directories
시작: shantoA
카테고리: English Support
Problem: |
|
0 | 6 | 3 주, 4 일 전에 |