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. Addons
  3. image hover bring to front

image hover bring to front

Scheduled Pinned Locked Moved Addons
5 Posts 2 Posters 461 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.
  • L Offline
    L Offline
    leili
    wrote on last edited by
    #1

    hey, I want to bring the images of the image hover to the foreground (above the menu). I am currently using the image position ‘right background’.

    here’s what I’ve tried so far, but it’s not working:

    .lay-imagehover-on-element {
    z-index: 2147483647 !important;
    }

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

      Hello, I think I was born in to your email.
      In Lay Options → Image Hover Addon.

      Screenshot 2025-05-12 at 08.33.28.png

      If that doesn't work, I will need the link to your website. To the page where this happens.

      L 1 Reply Last reply
      0
      • arminunruhA arminunruh

        Hello, I think I was born in to your email.
        In Lay Options → Image Hover Addon.

        Screenshot 2025-05-12 at 08.33.28.png

        If that doesn't work, I will need the link to your website. To the page where this happens.

        L Offline
        L Offline
        leili
        wrote on last edited by
        #3

        @arminunruh
        oh I'm sorry. unfortunately does not work yet.
        https://www.lilliseiler.de/work/

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

          Oh, you want them above the menu

          Well, due to something called stacking context.
          https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Stacking_context

          That's not really doable unless we change some things to have the images and the nav in the same stacking context.

          Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"

          /*stacking context, so zIndex of hover images are in same context as nav (i think they are with this) */
          .lay-content{
          position: static!important;
          }
          /*put lay nav zindex below */
          .laynav{
          z-index: 0!important;
          }
          /*we still had a opacity 0 navbar that would then be above our menu so hide it*/
          .navbar{
          display: none!important;
          }
          
          L 1 Reply Last reply
          0
          • arminunruhA arminunruh

            Oh, you want them above the menu

            Well, due to something called stacking context.
            https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Stacking_context

            That's not really doable unless we change some things to have the images and the nav in the same stacking context.

            Enter this css in "lay options" -> "custom css & html" -> "custom css for desktop"

            /*stacking context, so zIndex of hover images are in same context as nav (i think they are with this) */
            .lay-content{
            position: static!important;
            }
            /*put lay nav zindex below */
            .laynav{
            z-index: 0!important;
            }
            /*we still had a opacity 0 navbar that would then be above our menu so hide it*/
            .navbar{
            display: none!important;
            }
            
            L Offline
            L Offline
            leili
            wrote on last edited by
            #5

            @arminunruh thanks!

            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