Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. text position wrong after update

text position wrong after update

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 30 Views 2 Watching
  • 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.
  • D Offline
    D Offline
    dingdong
    wrote last edited by dingdong
    #1

    Hi!
    After i updated laytheme the position of the caption is wrong?!
    before i manged it to appear centered on the image when hovering?!
    any ideas what happened? @arminunruh

    www.mikeabmaier.com

    Bildschirmfoto 2025-10-21 um 10.30.00.png

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dingdong
      wrote last edited by
      #2

      hm anything in html-structure changed with the update?
      i asked chatgpt and now it seems to work with this long code?!

      /* Bezugspunkt für die absolute Position herstellen */
      body.home .img-id-13-no-sticky,
      body.home .lay-image,
      body.home .thumb {
      position: relative;
      }

      /* Dein bekanntes Overlay-CSS */
      body.home ._HoverOverview {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      margin: 0;
      z-index: 2;
      pointer-events: none;
      }

      /* --- Nur bei Hover sichtbar (Startseite) --- */
      body.home ._HoverOverview {
      opacity: 0 !important;
      transition: opacity 0.35s ease;
      will-change: opacity;
      }

      /* Variante A: modern & treffsicher mit :has()
      → zeigt NUR die Caption innerhalb genau des Elements, über dem du bist */
      body.home .grid__col:has(._HoverOverview):hover ._HoverOverview,
      body.home .col:has(._HoverOverview):hover ._HoverOverview,
      body.home .thumb:has(._HoverOverview):hover ._HoverOverview,
      body.home .img-id-13-no-sticky:has(._HoverOverview):hover ._HoverOverview,
      body.home .lay-image:has(._HoverOverview):hover ._HoverOverview,
      body.home .lay-gallery-image-wrap:has(._HoverOverview):hover ._HoverOverview,
      body.home .frame:has(._HoverOverview):hover ._HoverOverview {
      opacity: 1 !important;
      }

      /* Variante B: Fallback ohne :has() (für ältere Browser)
      → deckt typische Lay-Container ab, ohne bis zur .row hochzugehen /
      body.home .grid__col:hover ._HoverOverview,
      body.home .col:hover ._HoverOverview,
      body.home .thumb:hover ._HoverOverview,
      body.home .img-id-13-no-sticky:hover ._HoverOverview,
      body.home .lay-image:hover ._HoverOverview,
      body.home .lay-gallery-image-wrap:hover ._HoverOverview,
      body.home .frame:hover ._HoverOverview,
      body.home .thumb a:hover ._HoverOverview, /
      falls das Bild im <a> liegt /
      body.home .grid__col a:hover ._HoverOverview { /
      und die Caption daneben */
      opacity: 1 !important;
      }

      /* Safety: Bleibt sichtbar, wenn du direkt über dem Text bist */
      body.home ._HoverOverview:hover {
      opacity: 1 !important;
      }

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

        yea i may have changed the html structure there

        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

        Our Web Development company: 100k.studio

        Want to tip me? https://www.paypal.com/paypalme/arminunruh

        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