Home Forums WoodMart support forum Blog Posts with two Rows

Blog Posts with two Rows

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #580741

    order-4211
    Participant

    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 4 months, 2 weeks ago by order-4211.
    #580871

    Luke Nielsen
    Keymaster

    Hello,

    Send me some screenshots of how it should look (2×2 grid etc.)

    Thank you for your time.

    Kind Regards

    #584011

    order-4211
    Participant

    we builded it now on our own. the plugin had not enough flexibility.

    #584099

    Luke Nielsen
    Keymaster

    Hello,

    Okay, understood. So in this case the topic can be closed?

    Thank you for your time.

    Kind Regards

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