illdy slideshow

Hi,

I manage to add a slideshow to the header, but since the page is on 2 languages is it possible to add some code to display different slider for a different language?

I use this guide to add it: https://colorlibsupport.com/t/replace-jumbotron-with-a-slider/

and add this to front-page-bottom-header
<?php
echo do_shortcode(’[smartslider3 slider=2]’);
?>

Best regards,
Ivan

find the solution

<?php if(ICL_LANGUAGE_CODE==‘xy’): ?>
<?php
echo do_shortcode(‘[smartslider3 slider=2]’);
?>
<?php elseif(ICL_LANGUAGE_CODE==‘yz’): ?>
<?php
echo do_shortcode(‘[smartsliderx slider=x]’);
?>
<?php endif;?>

Hello,

I hope you are doing well today.

Nice work solving this issue. I will now close this thread.

Best Regards,
Support