• Hi, I am using 5 images in my home slider. I want to use the first two call to action buttons and remove the other three. How can I do that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter user2015

    (@user2015)

    CAn you help me please?

    Hello there,

    To accomplish it, try doing the below steps:

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    
    jQuery(function($) {
     
       //Define the new buttons. Delete the lines you don't need
       var button1 = '<a href="http://example.org" class="roll-button button-slider">Button 1</a>'; //Slide 1
       var button2 = '<a href="http://example.org" class="roll-button button-slider">Button 2</a>'; //Slide 2
       
      //Hide the default button
      $('.slide-inner a').hide();
     
      //Add the new buttons. Delete the lines you don't need
      $( '.slide-item:nth-of-type(1) .slide-inner' ).append(button1); //Slide 1
      $( '.slide-item:nth-of-type(2) .slide-inner' ).append(button2); //Slide 2
      
    });
    

    4. Update

    Regards,
    Kharis

    Thread Starter user2015

    (@user2015)

    ok. I´ll try this. thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Call to action button’ is closed to new replies.