oscarviedma

Código para envolver una sección en un div

Aug 4th, 2020 (edited)
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <script>
  2. jQuery(function($){
  3. // Envolver la seccion swiper-wrapper en un div swiper-container
  4. $( ".swiper-wrapper" ).wrap( "<div class='swiper-container'></div>" );
  5.  
  6. // Insertar la paginacion swiper js
  7. $( "<div class='swiper-pagination'></div>" ).insertAfter( ".swiper-wrapper" );
  8. });
  9. </script>
Add Comment
Please, Sign In to add comment