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. Collapse row when opening other

Collapse row when opening other

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 353 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
    Remco van Dun
    wrote on last edited by
    #1

    Great addition with the collapsible rows! Used custom code before but this is way more practical and doest restrict to the one row under the button.

    That being said, is it possible to have a opened row collapse when a new one opens?

    I've set up an example where I'd be able to use a summary of services with a collapsible row underneath.

    https://remcovandun.nl/info-2/

    When you click on Graphic Design the matched design services show.

    Clicking on a different service should close the previous while opening the new row? Maybe a 'only 1 open row at a time' checkbox in the lay options somewhere?

    best,
    Remco

    R 1 Reply Last reply
    0
    • R Remco van Dun

      Great addition with the collapsible rows! Used custom code before but this is way more practical and doest restrict to the one row under the button.

      That being said, is it possible to have a opened row collapse when a new one opens?

      I've set up an example where I'd be able to use a summary of services with a collapsible row underneath.

      https://remcovandun.nl/info-2/

      When you click on Graphic Design the matched design services show.

      Clicking on a different service should close the previous while opening the new row? Maybe a 'only 1 open row at a time' checkbox in the lay options somewhere?

      best,
      Remco

      R Offline
      R Offline
      Remco van Dun
      wrote on last edited by
      #2

      @Remco-van-Dun

      I've seen your new update 'collapse other rows'. This kind of fixes it, thanks!
      content moves a little weird from the bottom once you click through the options... Should it close first and open a new row another? Not sure if thats better.

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        yea i added that feature and released the update a day ago

        1 Reply Last reply
        0
        • arminunruhA Offline
          arminunruhA Offline
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          yeah i think i need to add another option:
          scroll to opened row

          because the thing is when other rows close it changes the scroll position because it changes the document height

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote on last edited by
            #5

            oh actually i think one of your rows might have a different row space so it has a different space at the top or sth

            R 1 Reply Last reply
            0
            • arminunruhA arminunruh

              oh actually i think one of your rows might have a different row space so it has a different space at the top or sth

              R Offline
              R Offline
              Remco van Dun
              wrote on last edited by Remco van Dun
              #6

              @arminunruh

              https://remcovandun.nl/info/

              I've updated my Info page with the collapsed subcategories for each service. Thanks, I didn't even notice the top margin jump yet. I was looking at the way the content seem to move up from the bottom if you toggle between the services was odd.

              Actually... this would be solved if there was a checkbox 'close other row before opening new row'?

              And to make them appear from the same top margin I had to set all the gutters for the rows after the first to 0%. Maybe not how you intended but works for me :)

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                Actually... this would be solved if there was a checkbox 'close other row before opening new row'?

                yea that feature exists now

                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
                O
                oli
                S
                StudioSchnettker
                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