Home Forums Meteorite Terra Slider plugin

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  JuanMZC 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #971

    JuanMZC
    Participant

    Hi there,

    How can I set up a third button on my slider? https://we.tl/vIQjU0j2bh

    Thanks in advance.

    #973

    Terra Themes
    Keymaster

    Hi,

    adding this with jQuery seems to be the best method. You can use this code:

    jQuery(function($) {
      if ( $('.page-id-156').length ) {
      	$('.terra-themes-header-slider').find('.header-cta-one').after('<a href="/brokers/" class="header-cta-one terra-button smooth-scroll">Broker</a>');
      }
    });

    The page ID is the one of your front page, also adjust the link and the text. If you need to style the button, add your own class or add the class .border to get the second button type.
    You can use the code in a JS plugin or the main.min.js. Normally this should be used in the child theme or custom JS plugin.

    #974

    JuanMZC
    Participant

    Thanks! I will try it.

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

You must be logged in to reply to this topic.