Advertisement
swte

Create Pseudo Slide for Elementor Gallery Slideshow

May 25th, 2021
1,147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function(){
  2.   var x = document.querySelector('.elementor-element-3d8bfbb5');
  3.   if (x != null){
  4.     var url = JSON.parse(x.dataset.settings).background_slideshow_gallery[0]['url'];
  5.     var slide = document.createElement('div');
  6.     slide.style.backgroundImage = "url("+url+")";
  7.     slide.id = "pseudo-slide";
  8.  
  9.     x.prepend(slide);
  10.   }
  11. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement