Pro - hard to explain- revolution slider linking to a slide from a button created by pro

so first things first see video below

I need to create a button in pro- that when clicked- links to a particular slide within a slider

this page https://www.themepunch.com/faq/link-particular-slider-individual-slide/#internal

provides whats needed for aan html link which is

Link Text

however I do not know how to add this to a button made in pro

this is the page in question:
http://staging1.kidsmagicworld.com.au/zxxx/#slide5

you will notice when you click the button- nothing happens
however when you click the text underneath called link text- this does work

any help would be great

sorry audio didn’t come out

Hello There,

Thanks for writing in! The text is using a JS code and in the button element, there is no way you can insert a JS code. What you can do is to add a custom my-button class to your button element and then use this JS code in the custom JS section in Cornerstone:

(function($){
  $('.my-button').on('click', function(){
    revapi22.revshowslide('5'); return false;
  })
})(jQuery);

Hope this helps.

that works- thank you

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.