Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Update Problem: Only show the first rows of the thumbnail grid

Update Problem: Only show the first rows of the thumbnail grid

Scheduled Pinned Locked Moved Bug Reports
5 Posts 3 Posters 724 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    ruwie
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • RichardR
      RichardR
      Richard
      Global Moderator
      wrote on last edited by Richard
      #2

      Dear R

      @ruwie

      Could you please post a link to your website with the News / Thumbnail Grid in question.


      Talk soon & have a wonderful day
      Richard
      1 Reply Last reply
      0
      • R
        R
        ruwie
        wrote on last edited by
        #3

        @Richard
        Here is the Link:
        https://bit.ly/3y5Kwjs

        Best

        1 Reply Last reply
        0
        • RichardR
          RichardR
          Richard
          Global Moderator
          wrote on last edited by
          #4

          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
          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            can you send your website address, /wp-admin/ username and password and a link to this topic to info@laytheme.com?

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Online Users
            L
            lstark
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search