Metaslider on specific language pages
-
Hi all!
I created a website with different Metaslider headers for different pages. I did this following this method: https://www.ads-software.com/support/topic/meta-slider-integration-in-header-for-specific-pages
However this isn’t difficult enough ?? now I want to have different metaslider headers for my translated pages. Hope I am making myself clear.
I made my translations with Qtranslate and installed the Qtranslage slug plugin. So for example I have the following code in my header php file:
} elseif ( is_page(‘hoe’) ) {
// page with slug page-slug
echo do_shortcode(“[metaslider id=366]”); // You can add as many other pages as you likeAnd this is working perfectly for my normal Dutch site. But now I want to have the English translation How to have a different metaslider header. So I figured it should be something like:
} elseif ( is_page(‘how’) ) {
// page with slug page-slug
echo do_shortcode(“[metaslider id=326]”); // You can add as many other pages as you likeHowever this is not working for me. Again I hope it is clear what I would like to do. Thanks so much in advance!
- The topic ‘Metaslider on specific language pages’ is closed to new replies.