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. Hover on simple Images

Hover on simple Images

Scheduled Pinned Locked Moved General Discussion
37 Posts 10 Posters 5.0k 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.
  • C Offline
    C Offline
    CharlotteG
    wrote on Jul 4, 2020, 10:27 PM last edited by
    #25
    This post is deleted!
    1 Reply Last reply
    0
    • M mariusjopen
      Jun 6, 2019, 8:22 AM

      Dear @mathias
      but you added a caption for the image?
      You need to add the caption by selecting an image and then click on edit caption.

      Best!

      Marius

      C Offline
      C Offline
      CharlotteG
      wrote on Jul 4, 2020, 10:30 PM last edited by
      #26

      Hi @mariusjopen

      thank you so much for this, it is exactly what I was looking for. However I don't seem to be getting the captions to show. I don't have captions on every image yet, though the first couple of images on this page should be showing them โ€”> https://www.ritaferrando.com/walls Would be great if you could help me out!

      Best,
      Charlotte

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mariusjopen
        Global Moderator
        wrote on Jul 6, 2020, 9:16 AM last edited by
        #27

        Dear @CharlotteG
        I don't see any captions on your website :-/
        Best!

        Marius

        www.mariusjopen.world

        1 Reply Last reply
        0
        • C Offline
          C Offline
          CharlotteG
          wrote on Jul 6, 2020, 3:36 PM last edited by
          #28

          Hi @mariusjopen,

          Thank you for your response.

          I know. I can't quite figure out why that is because I definitely put captions in for a lot of the images. See screenshot below. Still they will not show.

          Bildschirmfoto 2020-07-06 um 17.31.00.png

          This is the code I am using:

          .img img{
          transition: all 300ms ease;
          }
          
          .img:hover img{
          filter: brightness(0.5);
          }
          
          .img .caption{
          opacity: 0;
          transition: opacity 300ms ease;
          }
          
          .img:hover .caption{
          opacity: 1;
          }
          
          .img .caption{
              position: absolute;
              top: 50%;
              left: 50%;
              transform: translate(-50%, -50%);
          }
          

          Best,
          Charlotte

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CharlotteG
            wrote on Jul 8, 2020, 3:53 PM last edited by
            #29

            Hi @mariusjopen,

            I figured it out. I wasn't aware that putting in a caption in the media library or inside the gridder does not translate to the page.

            I would now like to do the same to images in a carousel. Is that possible?

            Best,
            Charlotte

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mariusjopen
              Global Moderator
              wrote on Jul 10, 2020, 10:09 AM last edited by
              #30

              Dear @CharlotteG
              it is not possible to use the captions from the media library.
              You need to adfd them into each image in the carousel and under each image in the Gridder.
              Best!
              Marius

              www.mariusjopen.world

              1 Reply Last reply
              0
              • M mariusjopen
                Jun 10, 2019, 9:46 AM

                Dear @Subliner
                you can achieve this by using CUSTOM-CSS.

                Best!

                Marius

                D Offline
                D Offline
                Dominik Gauly
                wrote on Aug 17, 2020, 3:53 PM last edited by
                #31

                @mariusjopen Hi Marius! How can I create an overlay color on mouse over. You said to use custom css, but I canโ€™t find the right method to create an overlay color. Absolute code beginner...

                1 Reply Last reply
                0
                • RichardR Offline
                  RichardR Offline
                  Richard
                  Global Moderator
                  wrote on Aug 19, 2020, 4:00 PM last edited by
                  #32

                  Dear @Dominik-Gauly

                  Just to say hi, reply and let you know that i am looking into this :)

                  Thank you for using Lay Theme

                  Best Wishes
                  Richard

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    LouisS
                    wrote on Dec 23, 2024, 7:17 PM last edited by LouisS Dec 23, 2024, 2:23 PM
                    #33

                    Hi,
                    I am wondering if the appearance of an image caption on top of an image when you hover over it is still possible. I have used the CSS code that is in the post here, but I don't see how this works with the new versions. I get a darker image when hovering, but no captions anymore. Can I add a lightbox caption and let that appear somehow?

                    .slug-editions .img img{
                    transition: all 300ms ease;
                    }
                    
                    .slug-editions .img:hover img{
                    filter: brightness(0.5);
                    }
                    
                    .slug-editions .img .caption{
                    opacity: 0;
                    transition: opacity 300ms ease;
                    }
                    
                    .slug-editions .img:hover .caption{
                    opacity: 1;
                    }
                    
                    .slug-editions .img .caption{
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                    }
                    
                    1 Reply Last reply
                    0
                    • arminunruhA Offline
                      arminunruhA Offline
                      arminunruh
                      Global Moderator
                      wrote on Dec 31, 2024, 1:51 PM last edited by
                      #34

                      hello!

                      .img .caption{
                          opacity: 0;
                          transition: opacity 300ms ease;
                      }
                      .img:hover .caption{
                          opacity: 1;
                      }
                      

                      this should show a caption of an image on hover!
                      you need to set the caption when you select the image and click edit caption in the gridder

                      just from looking at your css quickly it seems correct. but yours will only work on the page with a slug "editions"
                      explanation:
                      https://laytheme.com/documentation/custom-css-styling.html#css-based-on-current-page

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        LouisS
                        wrote on Jan 20, 2025, 9:01 PM last edited by
                        #35

                        Hi Armin,
                        I think I put my captions in the wrong place so they work again, but the darkening of the image does not work. It also darkens the caption when the code is like this:

                        .slug-editions .img {
                        transition: all 300ms ease;
                        }
                        
                        .slug-editions .img:hover {
                        filter: brightness(0.5);
                        }
                        

                        and does not work like it was before at all:

                        .slug-editions .img img{
                        transition: all 300ms ease;
                        }
                        
                        .slug-editions .img:hover img{
                        filter: brightness(0.5);
                        }
                        

                        not sure if there is a dot before img missing, but does not make a difference.
                        How can I darken the image, but keep the caption white?
                        https://intrastruktur.me/editions/
                        Best,
                        Louis

                        1 Reply Last reply
                        0
                        • arminunruhA Offline
                          arminunruhA Offline
                          arminunruh
                          Global Moderator
                          wrote on Jan 29, 2025, 11:08 AM last edited by arminunruh Jan 29, 2025, 6:09 AM
                          #36
                          .slug-editions .img:hover {
                              filter: brightness(0.5);
                          }
                          

                          this code above changes the caption brightness
                          the .caption container is inside the .img container, so that css makes the caption less bright too

                          use this instead:

                          .slug-editions .img img{
                          filter: brightness(1)!important;
                          transition: all 300ms ease;
                          }
                          
                          .slug-editions .img:hover img {
                          filter: brightness(0.5)!important;
                          }
                          
                          
                          1 Reply Last reply
                          0
                          • arminunruhA Offline
                            arminunruhA Offline
                            arminunruh
                            Global Moderator
                            wrote on Jan 29, 2025, 11:10 AM last edited by
                            #37

                            maybe doing this course will help also
                            https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

                            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
                            reinterpretR
                            reinterpret
                            11 minutes ago
                            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