WordPress.org

Support

Support » Themes and Templates » Customizr » Multilanguage Sliders

Multilanguage Sliders

  • Is there a way to show different Sliders when I’m in different languages?
    (e.g. English page show slider 1,2,3 and Other language show Slider 4,5,6)

    The reason is I’m using qtranslate and the language tags aren’t recognized in the Title text nor the description text.

    Therefore with the sliders I can only show 1 language.

    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can use the same slider. Enter:

    [:en]Your English text[:fr]Your French text

    for example, and re-save each slide image.

    Customizr Slider dosn’t recognize the translated text for title and button,
    I have got ride of it to 50% recognize it but only show one language (Default one).

    I have edited this file:
    wp-content/themes/customizr/parts/class-content-slider.php

    With this code, From:

    $data['title']          = apply_filters( 'tc_slide_title', $data['title'] , $id );
    $data['text']           = esc_html( apply_filters( 'tc_slide_text', $data['text'], $id ) );
    $data['color_style']    = apply_filters( 'tc_slide_color', $data['color_style'], $id );
    $data['link_id']        = apply_filters( 'tc_slide_link_id', $data['link_id'], $id );
    $data['link_url']       = ( 'demo' == $slider_name_id && is_null($data['link_url']) ) ? admin_url().'customize.php' : $data['link_url'];
    $data['link_url']       = apply_filters( 'tc_slide_link_url', $data['link_url'], $id );
    $data['button_text']    = apply_filters( 'tc_slide_button_text', $data['button_text'], $id );

    To:

    $data['title']          = esc_html( apply_filters( 'tc_slide_title', $data['title'] , $id ) );
    $data['text']           = esc_html( apply_filters( 'tc_slide_text', $data['text'], $id ) );
    $data['color_style']    = apply_filters( 'tc_slide_color', $data['color_style'], $id );
    $data['link_id']        = apply_filters( 'tc_slide_link_id', $data['link_id'], $id );
    $data['link_url']       = ( 'demo' == $slider_name_id && is_null($data['link_url']) ) ? admin_url().'customize.php' : $data['link_url'];
    $data['link_url']       = apply_filters( 'tc_slide_link_url', $data['link_url'], $id );
    $data['button_text']    = esc_html( apply_filters( 'tc_slide_button_text', $data['button_text'], $id ) );

    My website:
    http://iaeksa.net/

    Please help me in it.
    Thanks in advanced…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multilanguage Sliders’ is closed to new replies.
Skip to toolbar