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. Show Thumbnail when hover over text

Show Thumbnail when hover over text

Scheduled Pinned Locked Moved General Discussion
12 Posts 2 Posters 605 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.
  • P Offline
    P Offline
    pauljuergens
    wrote on last edited by pauljuergens
    #1

    Hi Guys,

    i am working on my Portfolio (https://www.paul-juergens.de) and i tried to add the feature, when hovering over the project Titel, the Project Thumbnails shows off. I wrote some custom css and tried out a lot, but i don't get it work.. can somebody help me?

    The Text has a custom class called arnoschmidttype

    0_1578094188264_Bildschirmfoto 2020-01-04 um 00.28.51.png 0_1578094179623_Bildschirmfoto 2020-01-04 um 00.28.41.png

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

      Dear @pauljuergens
      you can try to place an image in the gridder and give it a class like image-hidden and hide it.

      Then you can add a class called active with jQuery to this image, when you hover over the project title.
      I think this has been discussed in this forum a couple of times.
      Look for: hover, project, thumbnails, image

      Hope that helped!

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pauljuergens
        wrote on last edited by pauljuergens
        #3

        Hi @mariusjopen ,

        thank you for your fast respond.

        i added this to my css:

        #hidden-image {
        display:none;
        }

        #hidden-image .active {
        display:block;
        }

        and this to my javascript

        <script>
        jQuery(".arnoschmidttype").on("mouseenter", function () {
        jQuery("this").addClass("active")
        })
        </script>

        but it does not work...

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

          Dear @pauljuergens
          First: I would use classes and not ids. Ids are onyl when you use the element once on the page.

          As well you need to use display: block !important to actually overwrite.

          And last but not least, have a look of how to call an event in LayTheme here:
          http://laytheme.com/documentation.html#custom-javascript

          Hope that helps! You are almost there!

          Best!

          Marius

          www.mariusjopen.world

          P 1 Reply Last reply
          1
          • mariusjopenM mariusjopen

            Dear @pauljuergens
            First: I would use classes and not ids. Ids are onyl when you use the element once on the page.

            As well you need to use display: block !important to actually overwrite.

            And last but not least, have a look of how to call an event in LayTheme here:
            http://laytheme.com/documentation.html#custom-javascript

            Hope that helps! You are almost there!

            Best!

            Marius

            P Offline
            P Offline
            pauljuergens
            wrote on last edited by
            #5

            @mariusjopen thanks for all your help ! unfortunately it still doesn't work... and i don't know what i am doing wrong ...

            i changed the javascript to:

            <script>
            jQuery(document).on("mouseenter",".type1" function(event) {
            jQuery("this").addClass("active")
            });
            </script>

            and added the !important to the css..

            1 Reply Last reply
            0
            • mariusjopenM Offline
              mariusjopenM Offline
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Dear @pauljuergens

              jQuery(document).on("mouseenter",".type1" function(event) {
              jQuery(this).addClass("active")
              });
              

              Try to get rid of the "" around the this.

              That might might bring you closer.

              Best!

              Marius

              www.mariusjopen.world

              P 1 Reply Last reply
              0
              • mariusjopenM mariusjopen

                Dear @pauljuergens

                jQuery(document).on("mouseenter",".type1" function(event) {
                jQuery(this).addClass("active")
                });
                

                Try to get rid of the "" around the this.

                That might might bring you closer.

                Best!

                Marius

                P Offline
                P Offline
                pauljuergens
                wrote on last edited by
                #7

                hi @mariusjopen... its not working. i am really stuck.
                i tried another method and it seems like its moving something but the image is still not there..
                the method i used now was like the first one with css.
                https://www.paul-juergens.de
                so when you hover over seltsame tage (.type1) the space for the image is showing, but not the image.

                is this my fault or is something not working.. i don't know

                1 Reply Last reply
                0
                • mariusjopenM Offline
                  mariusjopenM Offline
                  mariusjopen
                  Global Moderator
                  wrote on last edited by
                  #8

                  Dear @pauljuergens
                  can you test it first in the inspector tools?
                  Once you know which effect you want to apply to the CSS, you can add a class with those styles.
                  Do not forget the !important tag to overwrite the old code.

                  Best!

                  Marius

                  www.mariusjopen.world

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pauljuergens
                    wrote on last edited by pauljuergens
                    #9

                    its really strange. @mariusjopen

                    when i open the inspector tools, its directly working without any change of code but only once.. it seems something ins blocking the image..

                    or if you go into the inspector and search for the id #img1 and turn display:none; of close the inspector and open it again and turn display:none; on again it is also working.. but only when the inspector is opened

                    here is a video:
                    https://www.paul-juergens.de/wp-content/uploads/2020/01/Bildschirmvideo-aufnehmen-2020-01-13-um-14.15.58.mov

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      pauljuergens
                      wrote on last edited by
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        pauljuergens
                        wrote on last edited by
                        #11

                        ok, i solved the problem !! i added a menu and i don't know why but this fixed everything haha !

                        Thanks for your help @mariusjopen !!

                        1 Reply Last reply
                        0
                        • mariusjopenM Offline
                          mariusjopenM Offline
                          mariusjopen
                          Global Moderator
                          wrote on last edited by
                          #12

                          Dear @pauljuergens
                          great! Happy to hear!

                          Best!

                          Marius

                          www.mariusjopen.world

                          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