Hi, I searched a bit but couldn’t find the answer for this exact question, so here it goes:
I have a page with an Advanced Layerslider on it.
Is it possible to have a link on that same page, but outside the slider, pointing to a specific slide?
Thanks
With a bit of digging through the code I kinda found a workaround. Unfortunately it only works with the help of a “code block” element, and it doesn’t even centre the page on the slider.
So please, if there’s an easier way to do this let me know! Would be much appreciated!
For reference, in a “code block” element, I added the following line, to create an external button that forces the slider to go to the second slide:
<a onclick="lsjQuery('#layerslider_4').layerSlider(2);">go to second slide</a>
Where “#layerslider_4” is the ID of my slider.
Hi kidcabide,
Could you give us a link to the page where you’re trying to do this?
Best regards,
Victoria
Hi Victoria
Hi,
Solution:
Make the button together with that link as a shortcode and load it after.
It will get it short out for you!
Best regards,
Basilis