Hello, we try to create a view where 8 blogposts are shown on the startpage. But the posts should be in a 2×2 grid and in a slider.
So that we have a slide with 4 posts and a second slide with 4 posts.
We cant find any setting for this in the blog-templates. How do we get this.
If we try to create a new shortcode and generate a completely new implementation there is an error while initializing the swiperjs.
Uncaught TypeError: Window.getComputedStyle: Argument 1 is not an object.
getComputedStyle /wp-includes/js/mediaelement/mediaelement-and-player.min.js?ver=4.2.17:12
b /wp-content/themes/medcheck/js/swiper-bundle.min.js:13
mount /wp-content/themes/medcheck/js/swiper-bundle.min.js:13
init /wp-content/themes/medcheck/js/swiper-bundle.min.js:13
ae /wp-content/themes/medcheck/js/swiper-bundle.min.js:13
<anonymous> /wp-content/themes/medcheck/js/swiper-blog-init.js:2
EventListener.handleEvent* /wp-content/themes/medcheck/js/swiper-blog-init.js:1
mediaelement-and-player.min.js:12:153998
document.addEventListener('DOMContentLoaded', function() {
let swiper = new wdSwiper('.swiper-container', {
slidesPerView: 2,
grid: {
rows: 2
},
spaceBetween: 10,
loop: false,
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
});
-
This topic was modified 5 months, 2 weeks ago by order-4211.