Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mano2web

    (@mano2web)

    Hello again everyone!

    I just want to say that my problem has been solved, I just needed to update some plugins and my site works fine again!

    Thank you!

    Thread Starter mano2web

    (@mano2web)

    Yes, you are right! Multiple tabs, absolutely my bad! I’m sorry about this! ??

    Thread Starter mano2web

    (@mano2web)

    Hello everyone!

    It’s me again.

    I’ve managed to solve it with the following code:

    <?php
     $currentlang = get_bloginfo('language');
     if($currentlang=="hu-HU"):
    ?>
     <?php echo do_shortcode("[huge_it_slider id='1']"); ?><br />
    <?php else: ?>
      <?php echo do_shortcode("[huge_it_slider id='2']"); ?><br />
    <?php endif; ?>

    For beginners like me to spare some hours of search a little (noob) explanation:

    This part does the first language check:

    <?php
     $currentlang = get_bloginfo('language');
     if($currentlang=="hu-HU"):
    ?>

    This part shows the hungarian slider if the above statement is true:
    <?php echo do_shortcode("[huge_it_slider id='1']"); ?><br />

    This part moves on to the next operation (if the statement in the previous case is NOT true):
    <?php else: ?>

    This part shows the slovak slider:
    <?php echo do_shortcode("[huge_it_slider id='2']"); ?><br />

    And this part closes the whole operation:
    <?php endif; ?>

    I think this is a pretty easy solution for 2 languages. Maybe with more languages you need to create more “if” sections.

    So problem solved, thank you for the documentation of Polylang and WordPress.

    This thread can be closed.

    Hello!

    I have the same issue, I use the Polylang addon and would like to use it to make the site a multilanguage one.

    I added the texts in one language and now I can’t translate it. I just currently need it for the Services and Slider section but if you can provide me a general solution for this problem maybe it will help others too. ??

    Thank you for your help!

Viewing 4 replies - 1 through 4 (of 4 total)