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. split screen only for one page

split screen only for one page

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 133 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
    ricorico4321
    wrote on Sep 12, 2023, 2:34 PM last edited by arminunruh Sep 13, 2023, 12:12 PM
    #1

    Hi!

    Is it possible to keep landing page as split screen setup and keep rest of page without?

    Thank you!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Sep 13, 2023, 4:11 PM last edited by
      #2

      yea!

      just use the css for one page like:
      https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-page

      so if your body class is ".slug-home":

      /* using "body>.lay-content #grid" instead of "#grid" for compatibility with "Overlay Feature" */
          body.slug-home>.lay-content #grid, #footer-region {
              height: 100%;
              position: fixed;
              top: 0;
              overflow-y: scroll;
              overflow: -moz-scrollbars-none;
              scrollbar-width: none;
              -webkit-overflow-scrolling: touch;
          }
          body.slug-home #footer-region {
              left: 0;
              width: 50%;
          }
          body.slug-home #footer{
              box-sizing: border-box;
              min-height: 100%;
          }
          body.slug-home>.lay-content #grid {
              right: 0;
              width: 50%;
          }
          body.slug-home>.lay-content #grid{
              box-sizing: border-box;
          }
          body.slug-home *::-webkit-scrollbar {
              display: none;
          }
      
      R 1 Reply Last reply Sep 15, 2023, 12:58 PM
      0
      • A arminunruh
        Sep 13, 2023, 4:11 PM

        yea!

        just use the css for one page like:
        https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-page

        so if your body class is ".slug-home":

        /* using "body>.lay-content #grid" instead of "#grid" for compatibility with "Overlay Feature" */
            body.slug-home>.lay-content #grid, #footer-region {
                height: 100%;
                position: fixed;
                top: 0;
                overflow-y: scroll;
                overflow: -moz-scrollbars-none;
                scrollbar-width: none;
                -webkit-overflow-scrolling: touch;
            }
            body.slug-home #footer-region {
                left: 0;
                width: 50%;
            }
            body.slug-home #footer{
                box-sizing: border-box;
                min-height: 100%;
            }
            body.slug-home>.lay-content #grid {
                right: 0;
                width: 50%;
            }
            body.slug-home>.lay-content #grid{
                box-sizing: border-box;
            }
            body.slug-home *::-webkit-scrollbar {
                display: none;
            }
        
        R Offline
        R Offline
        ricorico4321
        wrote on Sep 15, 2023, 12:58 PM last edited by
        #3

        @arminunruh Thank you!

        1 Reply Last reply
        0
        • J Offline
          J Offline
          julesmann
          wrote on Mar 25, 2024, 12:40 PM last edited by julesmann Mar 25, 2024, 9:12 AM
          #4

          @arminunruh
          Hi, I've used the code as mentioned above to make a splitscreen landing page. on this page i have text with links to projects etc. If i click on any of the links, it now goes to a new page, without splitscreen (yay!). But the leftside of my splitscreen stays on this new page. Any idea how to fix this?

          Edit. U have now used this code:

          [data-slug="grand-march"] .footer {
            display: none !important;
          }
          

          this way i have to add one for every new project page. is there an easier way?

          1 Reply Last reply
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Mar 28, 2024, 1:51 PM last edited by
            #5

            how about

            body.type-project .footer {
            display: none !important;
            }

            this will hide the footer on all project pages

            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
            C
            craigfeldspar
            2 minutes ago
            P
            PascalKueppers
            23 minutes ago
            H
            Hoschi
            29 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