Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • 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 108 Views
  • 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 Offline
    R Offline
    ruwie
    wrote on May 1, 2021, 10:52 AM 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
    • R Offline
      R Offline
      Richard
      Global Moderator
      wrote on May 3, 2021, 5:37 AM last edited by Richard May 3, 2021, 1:38 AM
      #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 Offline
        R Offline
        ruwie
        wrote on May 11, 2021, 6:45 AM last edited by
        #3

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

        Best

        1 Reply Last reply
        0
        • R Offline
          R Offline
          Richard
          Global Moderator
          wrote on May 12, 2021, 2:44 AM 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
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Jun 14, 2021, 12:25 PM 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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. 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:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            L
            leili
            24 minutes ago
            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