WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
Multilanguage Sliders (3 posts)

  1. mongulu
    Member
    Posted 4 months ago #

    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

  2. ElectricFeet
    Member
    Posted 4 months ago #

    You can use the same slider. Enter:

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

    for example, and re-save each slide image.

  3. iaeSAUDI
    Member
    Posted 3 months ago #

    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...

Reply

You must log in to post.

About this Theme

About this Topic