• Resolved EngBadr

    (@engbadr)


    Hello ,

    I use polylang in my WP , any plugin will installed (Custom post types and Taxonomies) I enabled the Uix Slideshow and every thing was fine but when I add image and its caption in language A , it will be in same language in other image.

    2nd question : can I have a template file for each language
    i.e partials-uix_slideshow-ar.php for arabic layout
    partials-uix_slideshow-en.php for english layout

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter EngBadr

    (@engbadr)

    I success to add two template files for each language
    i.e in the front-page

    <?php
    get_template_part( 'contents/slider/slider', pll_current_language()); 
    ?>

    it will result

    • slider-ar.php for Arabic
    • slider-en.php for English

    The problem is in the caption it will show only one language. the title is working fine but the caption content will not reflect the current language.

    I hope you get my point

    • This reply was modified 7 years, 11 months ago by EngBadr.
    • This reply was modified 7 years, 11 months ago by EngBadr.
    Plugin Author UIUX Lab

    (@uiuxlab)

    Thank you for the information you provide, I will consider this language needs. If there is a better way to implement it, I will update it.

    Maybe you need a plugin for WPML, you can try it.

    In short, hope you use it happy ??

    I will try to be compatible with polylang, once feasible I will update, thanks.

    • This reply was modified 7 years, 11 months ago by UIUX Lab.
    Thread Starter EngBadr

    (@engbadr)

    Thank you for replay
    I just find the problem is once I create the English slide with title and caption then I create the Arabic the title filed become empty and waiting for new language entry so it is Ok. the caption save the English phrase still save the same text in English. So if I change the text to become in Arabic it updated the caption flied in English slide and the problem occur that means one caption for two slides and I think it is bug because the title field save the data separated for each slide but the caption is not. I hop you got my idea.
    If so where I can find the caption filed so I may try to investigate the problem.
    this plugin is very nice because it help me a lot to change the layout and css for the slider.

    Plugin Author UIUX Lab

    (@uiuxlab)

    Thanks again for your answer. ??

    Very important reminder, I think I already know the cause of these problems. I will test multi-language and fix it. Please wait for my message, which may take a few days.

    Once resolved, I will post updates, thanks.

    Best Regards!

    Plugin Author UIUX Lab

    (@uiuxlab)

    Hello, I used the plugin Polylang and tested, is no problem that can switch language for Uix Slideshow. You need to refer to Polylang helper in a better way. https://polylang.pro/doc-category/getting-started/

    ——
    This is my process:

    1. You do not even need to modify partials-uix_slideshow.php
    2.Use Polylang to add different languages for slideshow items. Like this:
    https://www.dropbox.com/s/hd0e80eg5ynngad/1.jpg?dl=0
    https://www.dropbox.com/s/xx1xa4lopfk4qi8/2.jpg?dl=0
    https://www.dropbox.com/s/x611bfnttvmn218/3.jpg?dl=0
    https://www.dropbox.com/s/gyihb87zq4hsugg/4.jpg?dl=0

    3.Use different URL suffixes to see different languages. Like this:
    https://www.dropbox.com/s/b9b8dlre8sp2pk9/5.jpg?dl=0
    https://www.dropbox.com/s/azzbg4qinpt4w93/6.jpg?dl=0

    Hope to help you, thank you.
    Best Regards!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘polylang integration’ is closed to new replies.