Hi, I am using Layerslider for Wordpress and would like to also include popups on exit intent which have different language specific contents and slider IDs. Having composed some for each language however results in displaying a loop of all available popups one after the other. How can I implement this in Layer Slider properly by means of a php function? I am asking as I am not too familiar with php coding. In another WordPress App I have used the following php function specific script for Convert Plus plugin-specific popups. How would I need to change the code in order that it will work with language-specific Layerslider popups (before leaving the page) too? Many thanks for your help in advance! Cheerio, René Here is the said code: /* Convert Plus Language specific Popup addressing DE und EN */ function cp_callback_function( $display, $style_id ) {
Unfortunately, it is not possible to achieve this feature in the current version of LayerSlider. We will find a solution and add it to one of the future versions of the plugin.
Hi, I am using Layerslider for Wordpress and would like to also include popups on exit intent which have different language specific contents and slider IDs. Having composed some for each language however results in displaying a loop of all available popups one after the other. How can I implement this in Layer Slider properly by means of a php function? I am asking as I am not too familiar with php coding. In another WordPress App I have used the following php function specific script for Convert Plus plugin-specific popups. How would I need to change the code in order that it will work with language-specific Layerslider popups (before leaving the page) too? Many thanks for your help in advance! Cheerio, René
Here is the said code:
/* Convert Plus Language specific Popup addressing DE und EN */
function cp_callback_function( $display, $style_id ) {
if( $style_id == 'cp_id_1690a' && ICL_LANGUAGE_CODE == 'de') return true;
if( $style_id == 'cp_id_e73c9' && ICL_LANGUAGE_CODE == 'en') return true;
return $display;
}
add_filter( 'cp_target_page_settings', 'cp_callback_function', 10, 2);
Hello Rene,
Thank you for getting in touch with us!
Unfortunately, it is not possible to achieve this feature in the current version of LayerSlider.
We will find a solution and add it to one of the future versions of the plugin.
Thank you for your patience!
Best Regards,
Andrea | Kreatura Support Team