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. open overlay on page visit

open overlay on page visit

Scheduled Pinned Locked Moved General Discussion
10 Posts 3 Posters 488 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.
  • E Offline
    E Offline
    edgrbnz
    wrote on Sep 8, 2023, 7:14 AM last edited by
    #1

    Hi there @arminunruh !

    I love the new overlay feature, and been digging through the forum to find a way to control the transparency of the overlay-background. I found something over here 🙏 (I think this should be implemented as a setting for overlays, though)

    What I couldn’t find is an answer to this question:
    Is it possible to trigger an overlay via page visit? (like an intro but better b/c page specific) e.g. by adding a #overlay-page-name to the url?

    That would be killer!

    ✦ ✦ ✦

    E 1 Reply Last reply Sep 8, 2023, 10:02 AM
    1
    • E edgrbnz
      Sep 8, 2023, 7:14 AM

      Hi there @arminunruh !

      I love the new overlay feature, and been digging through the forum to find a way to control the transparency of the overlay-background. I found something over here 🙏 (I think this should be implemented as a setting for overlays, though)

      What I couldn’t find is an answer to this question:
      Is it possible to trigger an overlay via page visit? (like an intro but better b/c page specific) e.g. by adding a #overlay-page-name to the url?

      That would be killer!

      E Offline
      E Offline
      edgrbnz
      wrote on Sep 8, 2023, 10:02 AM last edited by
      #2

      @arminunruh another thing I think would be helpful is to have an option that hides/closes the overlay when clicking/tapping (also scrolling) the background of the overlay.

      Would that be an option?

      ✦ ✦ ✦

      A 1 Reply Last reply Sep 9, 2023, 8:19 AM
      1
      • E edgrbnz
        Sep 8, 2023, 10:02 AM

        @arminunruh another thing I think would be helpful is to have an option that hides/closes the overlay when clicking/tapping (also scrolling) the background of the overlay.

        Would that be an option?

        A Offline
        A Offline
        alasdair17
        wrote on Sep 9, 2023, 8:19 AM last edited by
        #3

        @edgrbnz said in open overlay on page visit:

        @arminunruh another thing I think would be helpful is to have an option that hides/closes the overlay when clicking/tapping (also scrolling) the background of the overlay.

        Would that be an option?

        I think this would be a great option!

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Sep 11, 2023, 3:21 PM last edited by
          #4
          background-color: rgba(0,0,0,0.5)!important;
          }
          .lay-overlay > .lay-content{
          background-color: rgba(0,0,0,0.5)!important;
          }
          

          try this!

          another thing I think would be helpful is to have an option that hides/closes the overlay when clicking/tapping (also scrolling) the background of the overlay.

          well when you have a background enabled, even if it has 0 opacity, you can click on the background to hide the overlay:
          Screenshot 2023-09-11 at 17.15.01.png

          why would you want to close it when scrolling? the issue with this is, if the content you have in your overlay is bigger than the window height, you can scroll within the overlay

          i added a html class to lay theme:
          "lay-scrolled-down" on the body. its added and removed whenever you scroll up and down, maybe that helps

          uncheck this setting when editing your overlay:
          Screenshot 2023-09-11 at 17.18.32.png

          you could write your own js that sees if you scrolled down, then trigger the escape key

          var esc = jQuery.Event("keydown", { keyCode: 27 });
          jQuery(document).trigger(esc);

          and do a check before if an overlay is open

          E 1 Reply Last reply Sep 11, 2023, 7:35 PM
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Sep 11, 2023, 3:22 PM last edited by
            #5

            Is it possible to trigger an overlay via page visit? (like an intro but better b/c page specific) e.g. by adding a #overlay-page-name to the url?

            what do you want this for?

            1 Reply Last reply
            0
            • A Offline
              A Offline
              arminunruh
              Global Moderator
              wrote on Sep 11, 2023, 3:29 PM last edited by
              #6

              i mean i think it could be a great thing to have but i just wonder about the use cases here mh

              1 Reply Last reply
              0
              • A arminunruh
                Sep 11, 2023, 3:21 PM
                background-color: rgba(0,0,0,0.5)!important;
                }
                .lay-overlay > .lay-content{
                background-color: rgba(0,0,0,0.5)!important;
                }
                

                try this!

                another thing I think would be helpful is to have an option that hides/closes the overlay when clicking/tapping (also scrolling) the background of the overlay.

                well when you have a background enabled, even if it has 0 opacity, you can click on the background to hide the overlay:
                Screenshot 2023-09-11 at 17.15.01.png

                why would you want to close it when scrolling? the issue with this is, if the content you have in your overlay is bigger than the window height, you can scroll within the overlay

                i added a html class to lay theme:
                "lay-scrolled-down" on the body. its added and removed whenever you scroll up and down, maybe that helps

                uncheck this setting when editing your overlay:
                Screenshot 2023-09-11 at 17.18.32.png

                you could write your own js that sees if you scrolled down, then trigger the escape key

                var esc = jQuery.Event("keydown", { keyCode: 27 });
                jQuery(document).trigger(esc);

                and do a check before if an overlay is open

                E Offline
                E Offline
                edgrbnz
                wrote on Sep 11, 2023, 7:35 PM last edited by edgrbnz Sep 11, 2023, 4:40 PM
                #7

                @arminunruh said in open overlay on page visit:

                well when you have a background enabled, even if it has 0 opacity, you can click on the background to hide the overlay:

                Oh I thought I tried this but totally misunderstood that the background setting only makes sense if the overlay is not 100% width. I then got the concept of choosing the background color for the row in the gridder, which basically disables the click-background-to-hide-overlay functionality.
                I used the overlay with the transparency code above, since I wanted it to be fullscreen (+ browser height) and blur the background / content of the site.

                @arminunruh said in open overlay on page visit:

                why would you want to close it when scrolling? the issue with this is, if the content you have in your overlay is bigger than the window height, you can scroll within the overlay

                Understood – I get that it’s kinda odd. I wanted to use it as a kind of Intro / Cover for pages, projects etc. I find an overlay with blurred content in the back way more appealing than the options the cover-feature has.

                The intro feature does the trick for now but won’t when I would want to use a similar approach (perhaps with carousels etc.) for projects / pages lateron. (currently re-designing in the back ☺️)
                Also the Intro does only appear on refresh, hence I asked if the overlay could be triggered with each page visit.

                I hope this makes any sense …

                ✦ ✦ ✦

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

                  @edgrbnz said in open overlay on page visit:

                  I then got the concept of choosing the background color for the row in the gridder, which basically disables the click-background-to-hide-overlay functionality.

                  no it doesnt!

                  the background im talking about here is the background next to the overlay. ONLY IF the overlay is not 100% width, that background is visible.

                  if your overlay is fullscreen, you basically want to be able to close the overlay by clicking on the overlay itself?

                  okay i see you want to use it as some kind of intro for pages.
                  yea currently its not possible :/ but its a cool idea yea

                  E 1 Reply Last reply Sep 13, 2023, 5:43 PM
                  1
                  • A arminunruh
                    Sep 13, 2023, 4:54 PM

                    @edgrbnz said in open overlay on page visit:

                    I then got the concept of choosing the background color for the row in the gridder, which basically disables the click-background-to-hide-overlay functionality.

                    no it doesnt!

                    the background im talking about here is the background next to the overlay. ONLY IF the overlay is not 100% width, that background is visible.

                    if your overlay is fullscreen, you basically want to be able to close the overlay by clicking on the overlay itself?

                    okay i see you want to use it as some kind of intro for pages.
                    yea currently its not possible :/ but its a cool idea yea

                    E Offline
                    E Offline
                    edgrbnz
                    wrote on Sep 13, 2023, 5:43 PM last edited by edgrbnz Sep 13, 2023, 1:45 PM
                    #9

                    @arminunruh said in open overlay on page visit:

                    if your overlay is fullscreen, you basically want to be able to close the overlay by clicking on the overlay itself?

                    Yes! that would be super nice as an option in the Background Settings in addition to the "X" Close Icon.

                    @arminunruh said in open overlay on page visit:

                    the background im talking about here is the background next to the overlay. ONLY IF the overlay is not 100% width, that background is visible.

                    I think something like no-background-rows would be a great option. This could open the possibility to have only the contents placed in the overlay to be considered overlay. The rest of the row could then be considered background, which could be clickable to close the overlay again.
                    This could also open the possibility to use all the neat background blur options for the whole page 🤩

                    @arminunruh said in open overlay on page visit:

                    okay i see you want to use it as some kind of intro for pages.
                    yea currently its not possible :/ but its a cool idea yea

                    If that could be something considered for a feature … that would be great!


                    PS:
                    If any of my toughts / ideas are hard to understand I’d be happy to build a quick Figma dummy to show said ideas – lemme know!

                    ✦ ✦ ✦

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      arminunruh
                      Global Moderator
                      wrote on Sep 15, 2023, 7:49 AM last edited by
                      #10

                      ok thanks, i think i understand what u mean

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

                      5/10

                      Sep 11, 2023, 3:22 PM


                      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
                      30 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.
                      5 out of 10
                      • First post
                        5/10
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search