Title: Hover element trigger?
Last modified: June 13, 2022

---

# Hover element trigger?

 *  Resolved [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/hover-element-trigger/)
 * Hello,
 * Please check the screenshot:
    [https://prnt.sc/kaJ68gDatcYu](https://prnt.sc/kaJ68gDatcYu)
 * I did not found how to create hover trigger, did I miss it?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/hover-element-trigger/#post-15733264)
 * Hello [@alexliii](https://wordpress.org/support/users/alexliii/) !
 * Hope you’re having a good day!
 * At the moment Hustle doesn’t come with a trigger for popups on hover event (note
   that this will likely only work on desktops, not on devices with a touch screen).
 * I’ve asked our Second Line Support team if they can provide a snippet that would
   trigger a popup also on hover. We’ll update you here as soon as we hear back 
   from them.
 * Best regards,
    Pawel
 *  Thread Starter [alexliii](https://wordpress.org/support/users/alexliii/)
 * (@alexliii)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/hover-element-trigger/#post-15733309)
 * Oh, great thanks, and I understand the situation.
 * If so, click a button event trigger still should be preferred, I mean that I 
   am looking for an alternative way of “add to cart” event trigger, because I can
   not make it work, and please check at [https://wordpress.org/support/topic/add-to-cart-trigger/](https://wordpress.org/support/topic/add-to-cart-trigger/)
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/hover-element-trigger/#post-15746119)
 * Hi [@alexliii](https://wordpress.org/support/users/alexliii/),
 * You can try the following snippet as a workaround:
 *     ```
       <?php
   
       add_action( 'wp_footer', function(){
       	?>
       	<script type="text/javascript">
       	jQuery(document).ready(function($){
       		let hover_elem = $('.entry-title');
       		if( hover_elem.length ){
       			let _hustle = '.module_id_14';
       			if( $(_hustle).length ){
       				hover_elem.on('mouseenter', function(){
       					HUI.popupLoad($(_hustle));
       				});
       			}
       		}
       	});
       	</script>
       	<?php
       }, 9999 );
       ```
   
 * You’ll have to update the elements class name in the following line:
    `let hover_elem
   = $('.entry-title');`
 * Suppose the class name is “hello-world” the above line will change to:
    `let 
   hover_elem = $('.hello-world');`
 * You’ll also have to update your popup ID in the following line:
    `let _hustle
   = '.module_id_14';`
 * If the popup ID Is 123 then the above line will be:
    `let _hustle = '.module_id_123';`
 * > I mean that I am looking for an alternative way of “add to cart” event trigger,
   > because I can not make it work
 * Without testing it out it’s tough to say whether the above code would help replace
   the workflow you have mentioned in the other ticket.
 * It would be better to stick with any one of the codes, please do the test and
   follow up on which code snippet you are looking to move forward with so that 
   we could assist further if needed.
 * Kind Regards,
    Nithin
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/hover-element-trigger/#post-15896124)
 * Hi [@alexliii](https://wordpress.org/support/users/alexliii/),
 * Since we haven’t heard from you for a while. I’ll mark this thread as resolved
   for now. Please feel free to re-open the thread if you need further assistance.
 * Best Regards
    Nithin

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hover element trigger?’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popup/assets/icon-256x256.gif?rev=3446944)
 * [Hustle - Email Marketing, Lead Generation, Optins, Popups](https://wordpress.org/plugins/wordpress-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popup/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/hover-element-trigger/#post-15896124)
 * Status: resolved