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?
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it