Update Problem: Only show the first rows of the thumbnail grid
-
have a problem after the last update:
I use the thumbnail grid to show news articles. So that not all news articles are displayed, I have limited the number by CSS and always show the first 2 rows.
This has always worked so far. Only now the .thumbnail-wrap simply move out of the parent-class and are displayed below each other. I don't understand it exactly because all suddenly all .thumbnailgrid-row after the first 2 disappear.
Example of what it looks like without CSS:
<div class="thumbnail-collection"> <div class="thumbnailgrid-row top-aligned"> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> </div> <div class="thumbnailgrid-row top-aligned"> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> </div> <div class="thumbnailgrid-row top-aligned"> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> </div> ... </div>so everything looks right, now I want to show only the first two rows and enter the css (worked before):
div.thumbnailgrid-row:nth-child(n+3) { display:none; }then the code breaks and it looks like this:
<div class="thumbnail-collection"> <div class="thumbnailgrid-row top-aligned"> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> </div> <div class="thumbnailgrid-row top-aligned"> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> </div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> <div class="thumbnail-wrap" style="..."></div> ... </div>so after the first 2 rows, all thumbnail-wraps are displayed one below the other. don't really understand this if i'm honest....
is there a solution?
Best R
-
-
-
Dear Ruwie
@ruwie
I think i may have to forward this one to Armin for further insight relating to the new WooCommerce integration and how this has changed things. Sorry for the inconvenience.
Talk soon & thank you for supporting Laytheme Ruwie 🌝
Sincerely
Richard
-
can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login