Replace echo 'pl'
by function with revslider shortode / or anything you need.
if ( wpm_get_language() == 'pl' ) {
putRevSlider("slider-pl")
}
if ( wpm_get_language() == 'en' )
{
putRevSlider("slider-en")
}
if ( wpm_get_language() == 'de' ) {
putRevSlider("slider-de")
}
Where: template or custom template file eg. page-home.php
I had to load different things and scripts depending on the language – actually in WPML I often use the code from the first post – that’s why I was looking for a similar solution for your plugin.
it can be anything including activating or deactivating actions and filters ?? and not just adding content or slider.
-
This reply was modified 7 years, 1 month ago by
jaworowicz.
-
This reply was modified 7 years, 1 month ago by
jaworowicz.
-
This reply was modified 7 years, 1 month ago by
jaworowicz.
-
This reply was modified 7 years, 1 month ago by
jaworowicz.