Hi, Amit here, I am the WPML Support Manager, our current ticket queue is quite calm and I'd like to encourage you to use our new chat support option

We are working hard to debug and look at every single report

All of the known issues are documented in https://wpml.org/known-issues/ you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

We are also adding once a week a tutorial to our YouTube channel - https://www.youtube.com/c/WPML-multilingual - check out if we already covered what you need and leave us a comment if you want us to produce anything there

If you do need to open a ticket please make sure to provide us with all the needed information as described here https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/

We are very proud at our level of support, we are one team from all over the world and we are all experienced WordPress developers, you can read more about us here - https://wpml.org/forums/supporters/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Andreas Neuber 5 years, 8 months ago.

Assigned support staff: Andreas Neuber.

Author Posts
May 15, 2013 at 9:31 am #127441


I need help how can I use a slider on the home that changes with the php see example
<?php if ( is_front_page() || ICL_LANGUAGE_CODE==it() ) : ?>

<?php putRevSlider("home-due") ?>

<?php endif; ?>

<?php if ( is_front_page() || ICL_LANGUAGE_CODE==fr() ) : ?>

<?php putRevSlider("home-fr") ?>

<?php endif; ?>


May 15, 2013 at 10:47 am #127458

Andreas Neuber

Languages: English (English ) German (Deutsch )

Hello Gianluca,

There are different possibility - you could adjust the PHP code a bit as you see it below.
If the user is on the front page and (&&) the language is Italien he will see the Italian slider:

<?php if ( is_front_page() && ICL_LANGUAGE_CODE=='it' ) : ?>

<?php putRevSlider("home-due") ?>

<?php endif; ?>

<?php if ( is_front_page() && ICL_LANGUAGE_CODE=='fr' ) : ?>

<?php putRevSlider("home-fr") ?>

<?php endif; ?>

Please let me know if this solves the problem for you.

The topic ‘[Closed] if ICL_LANGUAGE_CODE==it()’ is closed to new replies.