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. Site title below background cover video

Site title below background cover video

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 98 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.
  • dmncnD Offline
    dmncnD Offline
    dmncn
    wrote on last edited by
    #1

    Hi,

    I have a page with the first row set as a full-height background video and the option "Cover page" checked.

    I would like to hide the site title (that is a fixed image) under the video, so that it is shown only when user scrolls down.

    I tried to adjust the z-index of the containers but without results.

    .sitetitle {
        z-index: 2!important;}
        
    .cover-inner {
        z-index: 999!important;}
    

    If I set a value smaller than 2 for the .sitetitle it disappears.

    Thanks in advance

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @dmncn

      Are you able to post a link to the cover / page in question just to get a better idea about whats going on šŸŒ


      Talk soon
      Richard
      1 Reply Last reply
      0
      • dmncnD Offline
        dmncnD Offline
        dmncn
        wrote on last edited by
        #3

        Hi Richard,

        the site is still in development, I can give you private access to the WP admin if needed.

        These are the screenshots of the page without any custom CSS.

        The first is the page as it opens, with a fullscreen background video. The drawing of the man on the upper left corner is the PNG site title. As you can see it overlaps the video.

        The second is the page that scrolls down.

        I would like the site title to stay under the background video and be discovered as the user scrolls down, only adjusting the z-index of the two elements.

        Thanks in advance.

        Schermata 2022-03-17 alle 07.35.27.jpg

        Schermata 2022-03-17 alle 07.35.35.jpg

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

          Dear @dmncn

          It's a bit of a trick with just z-indexing alone. The whole system works on z-index:

          • Cover: z-index 1 (must be the lowest to slide underneath content)
          • Content: z-index 2 (must be higher to not be hidden by cover)
          • Site-title: z-index 3 (must remain above content).

          So i think however you assign new z-indexing to the above three elements it wont work for example:

          • Cover: z-index 1 (must be the lowest to slide underneath content)
          • Content: z-index 2 (must be higher to not be hidden by cover)
          • Site-title: z-index 0 (must remain behind cover == but now hidden by content).

          To use z-indexing for the site-title to be hidden then shown, the Cover must be higher than the image, but then it's also higher than the content and will not slide behind and therefore not be a cover.

          I think to solve this problem you need some javascript or jquery that "at a certain scroll position the site-titles z-index changes from 0 to 3"


          Best
          Richard
          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
          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