Show Thumbnail when hover over text
-
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...
-
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-javascriptHope that helps! You are almost there!
Best!
Marius
-
@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..
-
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
-
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
-
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
-
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 -
This post is deleted!
-
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 !!
-
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- 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:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it