탐색 건너뛰기

Open

Reported for: WPML Multilingual CMS 4.6.9

Topic Tags: Bug, Compatibility

Overview of the issue

You may encounter an issue where the internal URL in the Nectar Slider of the Salient theme doesn’t automatically adjust when switching to a translated version of your site. This occurs after translating a Nectar Slider post that includes an internal URL in the Button Link.

Workaround

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

  • Open your …/wp-content/plugins/salient-nectar-slider/includes/frontend/helpers.php file.
  • Look for line 814.
  • Replace:
    if ( ! empty( $button_1_text ) ) {
    	
    	$button_1_link = ! empty( $button_1_link ) ? $button_1_link : '#';
    
  • With:
    if ( ! empty( $button_1_text ) ) {
    
    	// WPML Workaround for compsupp-7240
    	if (class_exists('Sitepress') && ! empty( $button_1_link ) ) {
    		$current_lang = apply_filters( 'wpml_current_language', NULL );
    		$button_1_link = apply_filters( 'wpml_permalink', $button_1_link, $current_lang, true );
    	}
    	
    	$button_1_link = ! empty( $button_1_link ) ? $button_1_link : '#';
    

2 응답 에게 “Salient theme - Nectar Slider internal URL is not adjusted automatically”

답장을 남겨주세요

주제를 유지하고 다른 사람을 존중하십시오. 이 게시물과 관련 없는 문제에 대한 도움이 필요한 경우 지원 포럼을 사용하여 채팅을 시작하거나 티켓을 제출하십시오.

다음 태그를 사용할 수 있습니다.
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>