Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Get an image to pop up when I mouse over a word (text)?

    General Discussion
    3
    9
    2216
    Loading More Posts
    • 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.
    • M
      maxbale last edited by

      In the body of my text I want an image to p0p up when you hover your mouse over a certain word. Is it possible? How I can do this?

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        Hi Maxbale!

        I just explained this a couple of days ago.

        have a look here:

        http://laythemeforum.com:4567/topic/1568/adding-text-slide/4

        But use the updated code:

        .button-hide {
            display: none;
        }
        
        .button-show {
            display: block !important;
        }
        
        <script>
        jQuery(document).on("click", ".button", function(event) {
        	 jQuery(".button-hide").toggleClass("button-show");
        });
        </script>
        

        I hope you will figure it out :-)

        Best!

        Marius

        www.mariusjopen.world

        B 1 Reply Last reply Reply Quote 0
        • B
          bd last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • B
            bd @mariusjopen last edited by

            @mariusjopen

            Hi Marius

            I've just tried this but am not having any luck. It's as if I've done nothing at all. Any ideas?

            Thanks

            Bryn

            1 Reply Last reply Reply Quote 0
            • mariusjopen
              mariusjopen Global Moderator last edited by

              Hi @bd
              did you give the element the class button?

              All the best!

              Marius

              www.mariusjopen.world

              B 1 Reply Last reply Reply Quote 0
              • B
                bd @mariusjopen last edited by

                @mariusjopen

                I did give the button and hide classes as per the older thread you linked to.

                Sorry I know nothing about code and maybe stupidly trying to do this without learning much. I did notice in my custom CSS/HTML that I'm getting an error for the use of !important; , and {event) is not highlighting like it has with your screenshots, could this have something to do with it?

                Here's screenshots of what I have.

                1_1517370446908_Screen Shot 2018-01-31 at 2.42.25 pm.png
                0_1517370446907_Screen Shot 2018-01-31 at 2.42.34 pm.png

                Thanks for your help!

                1 Reply Last reply Reply Quote 0
                • mariusjopen
                  mariusjopen Global Moderator last edited by

                  Hi @bd

                  maybe it got a bit confusing.

                  Have a closer look here:
                  2_1517544490655_Bildschirmfoto 2018-02-02 um 02.07.37.png 1_1517544490655_Bildschirmfoto 2018-02-02 um 02.07.31.png 0_1517544490655_Bildschirmfoto 2018-02-02 um 02.07.21.png

                  I hope that works out!

                  Best!

                  Marius

                  www.mariusjopen.world

                  B 1 Reply Last reply Reply Quote 0
                  • B
                    bd @mariusjopen last edited by

                    Thanks @mariusjopen

                    That solved my problem, but then made me realise what I actually want to do is a bit more complicated and may not be possible with the gridder (having a menu that brings up an image in the same place as you hover over the items). I think I'll have to find someone with more knowledge than I have to sort it for me!

                    1 Reply Last reply Reply Quote 0
                    • mariusjopen
                      mariusjopen Global Moderator last edited by

                      Hi @bd

                      have a look here then:
                      http://laythemeforum.com:4567/topic/987/images-appear-on-link-hover-ii/3

                      http://laythemeforum.com:4567/topic/616/images-appear-on-link-hover/12

                      But probably you have to come up with your own solution about this :-/

                      Good luck and many wishes!

                      Marius

                      www.mariusjopen.world

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      Before you post

                      Use the Search Feature. Maybe there is already a solution to your issue.

                      1. Update Lay Theme and all Lay Theme Addons
                      2. Disable all Plugins
                      3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                      4. Now see if your problem solved itself
                      5. Go here, see if your problem is listed here:
                      Troubleshooting

                      When you post:
                      1. Post a link to where the problem is
                      2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                      Thanks!

                      Online Users

                      C

                      Recent Topics

                      • C

                        image carousel bugging out

                      • N

                        help needed with cleaning up and optimising lay theme portfolio website

                      • R

                        Html5 Video Player issue

                      laytheme.com