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. General Discussion
  3. Grid / list view

Grid / list view

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 48 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.
  • L Offline
    L Offline
    lortnok
    wrote on Dec 26, 2024, 8:13 AM last edited by lortnok Dec 29, 2024, 8:13 AM
    #1

    Hi there,

    I would like to add a toggle so visitors can choose between thumbnail grid and list view without reloading the page. can I do this with ajax?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Dec 31, 2024, 1:10 PM last edited by
      #2

      oh unfortunately theres no functionality for this

      you can however create 2 pages one with a thumbnailgrid element and one with a project index element and then have links on these pages to one another :/

      L 1 Reply Last reply Jan 1, 2025, 12:19 PM
      0
      • A arminunruh
        Dec 31, 2024, 1:10 PM

        oh unfortunately theres no functionality for this

        you can however create 2 pages one with a thumbnailgrid element and one with a project index element and then have links on these pages to one another :/

        L Offline
        L Offline
        lortnok
        wrote on Jan 1, 2025, 12:19 PM last edited by lortnok Jan 1, 2025, 8:25 AM
        #3

        @arminunruh no problem, I just solved it by putting the thumbnail grid below the index element on the landing page in the Gridder.
        I added grid_view_container class to the row where I placed the Thumbnail Grid.
        For the row below I added the class list_view_container and placed the Index element there.
        I did the same for the mobile version.

        by doing this I can now hide these rows by clicking the toggle button thanks to some javascript.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Jan 2, 2025, 7:47 PM last edited by
          #4

          yes very clever! this is a good way, its good you know javascript !! :))
          makes much more possible

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes

          1/4

          Dec 26, 2024, 8:13 AM


          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
          C
          craigfeldspar
          6 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.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search