Home › Forums › WoodMart support forum › Blog Posts with two Rows
Blog Posts with two Rows
- This topic has 3 replies, 2 voices, and was last updated 1 year, 4 months ago by
Luke Nielsen.
-
AuthorPosts
-
July 3, 2024 at 6:48 pm #580741
order-4211ParticipantHello, 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:153998document.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 1 year, 4 months ago by
order-4211.
July 4, 2024 at 9:45 am #580871
Luke NielsenMemberHello,
Send me some screenshots of how it should look (2×2 grid etc.)
Thank you for your time.
Kind Regards
July 17, 2024 at 5:31 pm #584011
order-4211Participantwe builded it now on our own. the plugin had not enough flexibility.
July 18, 2024 at 9:33 am #584099
Luke NielsenMemberHello,
Okay, understood. So in this case the topic can be closed?
Thank you for your time.
Kind Regards
-
This topic was modified 1 year, 4 months ago by
-
AuthorPosts
Tagged: blog, getComputedStyle, TypeError
- You must be logged in to create new topics. Login / Register
