March 15, 2016 at 4:55 am
Hi Ben,
1. To have different sliders on the SHOP page according to the respective languages.
Could you please give me these first four lines, for the shop page slider code :
I have this code for my individual product page:
add_action( 'kt_afterheader', 'kt_woocommerce_single_head_slider', 10 );
function kt_woocommerce_single_head_slider() {
if (class_exists('woocommerce')) {
if(is_product()) {
if(ICL_LANGUAGE_CODE=='en') {
echo '<div class="kt-desktopslider">';
echo do_shortcode('[cycloneslider id="english 1"]');
echo '</div><div class="kt-mobileslider">';
echo do_shortcode('[cycloneslider id="english 1-mobile"]');
echo '</div>';
} else if(ICL_LANGUAGE_CODE=='fr') {
echo '<div class="kt-desktopslider">';
echo do_shortcode('[cycloneslider id="french 1"]');
echo '</div><div class="kt-mobileslider">';
echo do_shortcode('[cycloneslider id="french 1-mobile"]');
echo '</div>';
} else {
echo '<div class="kt-desktopslider">';
echo do_shortcode('[cycloneslider id="dutch 1"]');
echo '</div><div class="kt-mobileslider">';
echo do_shortcode('[cycloneslider id="dutch 1-mobile"]');
echo '</div>';
}
}
}
}
2. Also, my page title for the shop page is not showing. I have written the title in english and dutch on the respective pages. Any Idea what could be the issue?