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

Grid / list view

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 207 Views 2 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.
  • L Offline
    L Offline
    lortnok
    wrote on last edited by lortnok
    #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
    1
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote on 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
      0
      • arminunruhA arminunruh

        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 last edited by lortnok
        #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
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on 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
          • alvarodozeA Offline
            alvarodozeA Offline
            alvarodoze
            wrote last edited by
            #5

            @lortnok do you think this would work with the "Scroll slider" view? So I can switch from Grid to Scroll slider.

            Thank you in advance

            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

            Our Web Development company: 100k.studio

            Want to tip me? https://www.paypal.com/paypalme/arminunruh

            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
            R
            radovanvasak
            U
            user-4'33''
            L
            layotto
            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