Vukane

6th Sydney Pro Slide

Sep 28th, 2020
17
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //To add extra slide items you can use jQuery code solution. Try doing these steps, please.
  2.  
  3. (function($){
  4.  
  5. $.fn.addHeaderSlider=function(e){var i=$.extend({imageUrl:"",mainTitle:"",subTitle:""},e),t=$(".header-slider .slide-item:nth-of-type(1) .button-slider").attr("href"),l=$(".header-slider .slide-item:nth-of-type(1) .button-slider").text(),s='<div class="slide-item" style="background-image:url(\''+i.imageUrl+"')\">";s+='<img class="mobile-slide preserve" src="'+i.imageUrl+'" />',s+='<div class="slide-inner custom-slide-inner"><div class="contain animated fadeInRightBig text-slider">',s+='<h2 class="maintitle">'+i.mainTitle+"</h2>",s+='<p class="subtitle">'+i.subTitle+"</p>",s+='</div><a href="'+t+'" class="roll-button button-slider">'+l+"</a></div>",s+="</div>",""!=i.imageUrl&&this.find(".slides-container").append(s)};
  6.  
  7. /* Additional slide items */
  8.  
  9. // Additional slide 1
  10. $('.header-slider').addHeaderSlider({
  11. imageUrl: 'https://demo.savemoz.com/wp-content/uploads/2020/09/Beleza_Africana2_S6.jpg',
  12. mainTitle: 'Notícias EksPI',
  13. subTitle: 'Memorando de entendimendo com AMMO'
  14. });
  15.  
  16. /* Additional slide items ends */
RAW Paste Data