Title: Hover on elements doesn&#8217;t work
Last modified: August 28, 2017

---

# Hover on elements doesn’t work

 *  Resolved [VisedFAQ](https://wordpress.org/support/users/visedfaq/)
 * (@visedfaq)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hover-on-elements-doesnt-work/)
 * Hi, I’ve encountered a little problem with this plugin. I have a little jQuery
   snippet, that allows me to display a description for every instance of portfolio
   item (how it works – scroll to ‘portfolio’ section: [https://en.grad-agency.com/design/](https://en.grad-agency.com/design/)).
   The problem is, when I activated plugin for this custom post type, this hover
   effect doesn’t work anymore ([https://en.grad-agency.com/proud-of/](https://en.grad-agency.com/proud-of/)).
   jQuery snippet that makes this hover work:
 *     ```
       $(".proud-of-box").hover(function() {
         $(".proud-of-box-desc", this).css({"visibility":"visible","opacity":"1"});
         }, function(){
           $(".proud-of-box-desc", this).css({"visibility":"hidden","opacity":"0"});
       });
       ```
   
 * Maybe you can suggest solution for this problem?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhover-on-elements-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [VisedFAQ](https://wordpress.org/support/users/visedfaq/)
 * (@visedfaq)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hover-on-elements-doesnt-work/#post-9447239)
 * I resolved this issue by adding this code to work with AJAX:
 *     ```
       $('.alm-ajax').on('mouseenter', '.proud-of-box', function() {
               $(this).addClass('hover');
           }).on('mouseleave', '.proud-of-box', function() {
               $(this).removeClass('hover');
           });
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Hover on elements doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [hover](https://wordpress.org/support/topic-tag/hover/)
 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 1 participant
 * Last reply from: [VisedFAQ](https://wordpress.org/support/users/visedfaq/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/hover-on-elements-doesnt-work/#post-9447239)
 * Status: resolved