make image caption follow mouse!
-
enter this in lay options → custom css & html → custom <head> content:
<script> var $caption; jQuery(document).on('mouseenter', '.col.type-img', function(e){ //console.log(e); $caption = jQuery(e.currentTarget).find('.caption'); }) jQuery(document).on('mouseleave', '.col.type-img', function(){ console.log('mouseleave'); $caption.css('display', 'none'); $caption = null; }) var offset = 10; jQuery(document).on('mousemove', '.col.type-img', function(e){ console.log('mousemove'); if($caption != null){ $caption.css({'display': 'block', 'top': e.clientY + offset, 'left': e.clientX + offset}); } }) </script>
enter this in "custom css for desktop":
.caption{ position: fixed; display: none; z-index: 99; }
now in the gridder, add an image in your layout, select it and click "edit caption" button.
add a caption. now on your website the caption will follow your mouse. -
🙏🙏🙏🙏🙏🙏
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
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com