Various slider for each page in header

Herbert created the topic: Various slider for each page in header

Is ist possible to use various slider for each page in the header?

It is possible with an other slider, using the following php-code. But I want to use Slider WD in WordPress, can you help me?

<?php
if ( is_page ('page 1')) {echo do_shortcode("[metaslider id=773]");}
else if ( is_page ('page 2')) {echo do_shortcode("[metaslider id=861]");}
else {echo do_shortcode("[metaslider id=863]");}
?>

#93157

Please Log in or Create an account to join the conversation.


Anoush replied the topic: Various slider for each page in header

Hello Herbert,

Thanks for your inquiry :)

I am gladly informing you that it is possible, please add the below code

if ( is_page ('page 1')) {wd_slider(1);}
else if ( is_page ('page 2')) {wd_slider(2);}
else {wd_slider(3);}


Please note that the 1,2,3 are the ID s of each slider.

Please let me know in case you notice anything else that we can help you with. Thanks and have a great day!

#93231

Please Log in or Create an account to join the conversation.


Herbert replied the topic: Various slider for each page in header

Hello,

thanks for help. It works.

I have only problems with small displays. I can hide on smartphone, but on tablet it don't looks fine. I will try.

#93263

Please Log in or Create an account to join the conversation.


Anoush replied the topic: Various slider for each page in header

Dear Herbert,

If you have any questions, please email us back. Thanks and have a great day!

#93351

Please Log in or Create an account to join the conversation.


Time to create page: 0.136 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us