Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    100vh carousel on desktop vs. on mobile

    General Discussion
    2
    4
    46
    Loading More Posts
    • 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.
    • S
      sportklub last edited by

      Hi
      On the homepage I use a 100vh carousel and a light grey, transparent menu bar which blurs everything in the background.
      With the height being 100vh the carousel on desktop is being shown below the menu bar and there it's slightly blurred. This is how I want it to be.
      On mobile however, the same carousel with a height of also 100vh starts only after the menu bar.

      How can I have the carousel full screen on mobile and the menu bar being displayed on top of that?

      Best, Raphael

      1 Reply Last reply Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        hey there!

        lay options → custom css & html

        custom css for mobile:

        body{
        padding-top:0!important;
        }
        
        S 1 Reply Last reply Reply Quote 0
        • S
          sportklub @arminunruh last edited by sportklub

          @arminunruh Thanks for your reply, Armin. But that was of course the first thing I tried myself.

          The top part looks now exactly how I want. But, in Chrome (iPhone) the carousel is with that code 50px (Menu bar height) too short in height. Seems like on mobile Lay Theme subtracts the Menu bar height before displaying the carousel with 100vh. Only on desktop, 100vh is really covering 100%.

          Btw. in Safari there is the additional problem that 100vh is not covering 100% of the viewport and there is always a whitespace blow the carousel.

          Best, Raphael

          1 Reply Last reply Reply Quote 0
          • arminunruh
            arminunruh Global Moderator last edited by

            if you hide the whole mobile navbar in customizer this should work

            sry i wont code it to work for your case since its a really unique case

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Post a link to where the problem is
            I don't answer or check forum DMs, please just post on the forum.
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

            Before you post:

            Use the Search Feature. Maybe there is already a solution to your issue.

            1. Update Lay Theme and all Lay Theme Addons
            2. Disable all Plugins
            3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
            4. Now see if your problem solved itself
            5. Go here, see if your problem is listed here:
            Troubleshooting

            When you post:
            1. Post a link to where the problem is
            2. If the problem is difficult to explain, post screenshots / link to a video to explain it

            Thanks!

            Online Users

            T

            Recent Topics

            • While editing the carousel, the images are not displayed correctly

            • shortocdes on woocommerce product pages for ACF

            • Disable Rightclick and context menu for copyright reasons

            • List Text formats

            laytheme.com