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 321 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
    D
    dingdong
    wrote on 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
      D
      dingdong
      wrote on 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
        arminunruhA
        arminunruh
        Global Moderator
        wrote on last edited by
        #3

        yea i may have changed the html structure there

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Online Users
        A
        Anna_S
        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